fix yui-compressor on ubuntu, change shebangs to bash

This commit is contained in:
Sami Samhuri 2011-11-27 08:58:16 +00:00
parent 02b83a2fb7
commit c25a90acc2
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
bail() {
echo fail: $*

View file

@ -1,4 +1,8 @@
#!/bin/sh
#!/bin/bash
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