Merge pull request #2447 from badboy/patch-1
Removed useless use of cat
This commit is contained in:
commit
4f22f76cf6
|
@ -81,9 +81,9 @@ DOWNLOAD_JQUERY="true"
|
||||||
NEEDED_VERSION="1.9.1"
|
NEEDED_VERSION="1.9.1"
|
||||||
if [ -f "src/static/js/jquery.js" ]; then
|
if [ -f "src/static/js/jquery.js" ]; then
|
||||||
if [ $(uname) = "SunOS" ]; then
|
if [ $(uname) = "SunOS" ]; then
|
||||||
VERSION=$(cat src/static/js/jquery.js | head -n 3 | ggrep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?");
|
VERSION=$(head -n 3 src/static/js/jquery.js | ggrep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
|
||||||
else
|
else
|
||||||
VERSION=$(cat src/static/js/jquery.js | head -n 3 | grep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?");
|
VERSION=$(head -n 3 src/static/js/jquery.js | grep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${VERSION#v} = $NEEDED_VERSION ]; then
|
if [ ${VERSION#v} = $NEEDED_VERSION ]; then
|
||||||
|
|
Loading…
Reference in New Issue