Jelajahi Sumber

remove bashism

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Thomas Sjögren 10 tahun lalu
induk
melakukan
9b42de0e57
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      hack/install.sh

+ 1 - 1
hack/install.sh

@@ -187,7 +187,7 @@ do_install() {
 			# install apparmor utils if they're missing and apparmor is enabled in the kernel
 			# install apparmor utils if they're missing and apparmor is enabled in the kernel
 			# otherwise Docker will fail to start
 			# otherwise Docker will fail to start
 			if [ "$(cat /sys/module/apparmor/parameters/enabled 2>/dev/null)" = 'Y' ]; then
 			if [ "$(cat /sys/module/apparmor/parameters/enabled 2>/dev/null)" = 'Y' ]; then
-				if command -v apparmor_parser &> /dev/null; then
+				if command -v apparmor_parser >/dev/null 2>&1; then
 					echo 'apparmor is enabled in the kernel and apparmor utils were already installed'
 					echo 'apparmor is enabled in the kernel and apparmor utils were already installed'
 				else
 				else
 					echo 'apparmor is enabled in the kernel, but apparmor_parser missing'
 					echo 'apparmor is enabled in the kernel, but apparmor_parser missing'