summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2015-01-08 12:54:08 +0100
committerJan-Erik Rediger <janerik@fnordig.de>2015-01-08 14:16:07 +0100
commit1f558dc8430b53f349d7161d773bc177354f3791 (patch)
treecff712b2a73a0e29d231449bb839bac1b4f459ff /bin
parentf2c443809fe2123e32cd86b9752126f0186ebd7b (diff)
downloadetherpad-lite-1f558dc8430b53f349d7161d773bc177354f3791.zip
Removed useless use of cat
Diffstat (limited to 'bin')
-rwxr-xr-xbin/installDeps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/installDeps.sh b/bin/installDeps.sh
index 58eb32f2..ba2f56a4 100755
--- a/bin/installDeps.sh
+++ b/bin/installDeps.sh
@@ -81,9 +81,9 @@ DOWNLOAD_JQUERY="true"
NEEDED_VERSION="1.9.1"
if [ -f "src/static/js/jquery.js" ]; 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
- 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
if [ ${VERSION#v} = $NEEDED_VERSION ]; then