From 08b4363330ee8700aa58aca25295e09c9d4a9faf Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Fri, 29 Jan 2016 18:57:21 +0200 Subject: compile.sh - posix-compatible program existence checking --- compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.sh') diff --git a/compile.sh b/compile.sh index 7305aabc8..84ed478a2 100755 --- a/compile.sh +++ b/compile.sh @@ -79,7 +79,7 @@ checkPackages () echo "$PROGRAMS" | while read line; do EXE_NAME=`echo "$line" | cut -f 1` PACKAGE_NAME=`echo "$line" | cut -f 2` - $EXE_NAME --help > /dev/null 2> /dev/null || echo -n " $PACKAGE_NAME" + command -v $EXE_NAME > /dev/null 2> /dev/null || echo -n " $PACKAGE_NAME" done } MISSING_PACKAGES="$MISSING_PACKAGES`checkPackages`" -- cgit v1.2.3