Merge pull request #2910 from LogicParrot/posix
compile.sh - posix-compatible program existence checking
This commit is contained in:
commit
d9e4eaa2a6
@ -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`"
|
||||
|
Loading…
Reference in New Issue
Block a user