]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove bashism from Makefile
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 17 Sep 2013 16:20:40 +0000 (20:20 +0400)
committerNeilBrown <neilb@suse.de>
Tue, 17 Sep 2013 23:21:23 +0000 (09:21 +1000)
Makefile uses [ x == y ] construct which does not work
with POSIX shell.  Since this is just testing a flag,
replace it with string comparison (=) operator instead.

Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: NeilBrown <neilb@suse.de>
Makefile

index e8da3a5da17c36d85c1c648186ae84b912434679..c60cc2cf20f2fd92d003f3f7ed86c4ad3b5820d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -156,7 +156,7 @@ all : check_rundir mdadm mdmon
 man : mdadm.man md.man mdadm.conf.man mdmon.man raid6check.man
 
 check_rundir:
-       @if [ ! -d "$(dir $(RUN_DIR))" -a  "$(CHECK_RUN_DIR)" == 1 ]; then \
+       @if [ ! -d "$(dir $(RUN_DIR))" -a  "$(CHECK_RUN_DIR)" = 1 ]; then \
                echo "***** Parent of $(RUN_DIR) does not exist.  Maybe set different RUN_DIR="; \
                echo "*****  e.g. make RUN_DIR=/dev/.mdadm" ; \
                echo "***** or set CHECK_RUN_DIR=0"; exit 1; \