1
0
Fork 0

Merge pull request #2910 from LogicParrot/posix

compile.sh - posix-compatible program existence checking
This commit is contained in:
LogicParrot 2016-01-29 19:42:29 +02:00
commit d9e4eaa2a6
1 changed files with 1 additions and 1 deletions

View File

@ -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`"