never use yui-compressor in /usr/bin
This commit is contained in:
parent
a4320205fd
commit
0bdd0a4a50
1 changed files with 1 additions and 5 deletions
|
|
@ -1,8 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ -x /usr/bin/yui-compressor ]]; then
|
java -jar ~/apps/yuicompressor-2.4.7.jar "$1" -o "$2"
|
||||||
exec /usr/bin/yui-compressor "$1" -o "$2"
|
|
||||||
else
|
|
||||||
java -jar ~/apps/yuicompressor-2.4.7.jar "$1" -o "$2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue