mirror of https://github.com/vitalif/phantomjs
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=9281.9
parent
3f42fb230f
commit
d7652abc11
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue