fix yui-compressor on ubuntu, change shebangs to bash
This commit is contained in:
parent
02b83a2fb7
commit
c25a90acc2
2 changed files with 7 additions and 3 deletions
2
publish
2
publish
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
bail() {
|
||||
echo fail: $*
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
java -jar ~/apps/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar "$1" -o "$2"
|
||||
if [[ -x /usr/bin/yui-compressor ]]; then
|
||||
exec /usr/bin/yui-compressor "$1" -o "$2"
|
||||
else
|
||||
java -jar ~/apps/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar "$1" -o "$2"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue