Unix packaging: Fix UPX detection for binary compression.

As pointed out by Cristian Ciupitu, our UPX detection logic was broken.
This is now fixed by using `type` to look for the executable.

http://code.google.com/p/phantomjs/issues/detail?id=928
1.9
Ariya Hidayat 2012-12-23 14:36:24 -08:00
parent 3f42fb230f
commit d7652abc11
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ echo "done"
echo
echo -n "compressing binary..."
if [[ ! -z upx ]]; then
if type upx >/dev/null 2>&1; then
upx -qqq -9 $phantomjs
echo "done"
else