summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-29 18:42:29 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-29 18:42:29 +0100
commitd9e4eaa2a6d9764d7d9f5eee66611397e95cc20d (patch)
tree63aa809f08637a881de0b719ca80f3374231314a /compile.sh
parentMerge pull request #2909 from mathias-github/readme (diff)
parentcompile.sh - posix-compatible program existence checking (diff)
downloadcuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar.gz
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar.bz2
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar.lz
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar.xz
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.tar.zst
cuberite-d9e4eaa2a6d9764d7d9f5eee66611397e95cc20d.zip
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh2
1 files changed, 1 insertions, 1 deletions
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`"