1
0
Fork 0

compile.sh - posix-compatible program existence checking

This commit is contained in:
LogicParrot 2016-01-29 18:57:21 +02:00
parent 1491130a6e
commit 08b4363330
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`"