Files
mediawiki-extensions-Univer…/scripts/update-jquery-i18n.sh
Kartik Mistry b7e6aaa475 shellcheck fixes
* Script: https://github.com/koalaman/shellcheck
* Use $(..) instead of deprecated `..`
* Use double quote to prevent globbing and word splitting.

Change-Id: I68372d4e29ae34e0704e5a605447ad17bf0666d7
2014-04-01 07:58:24 +00:00

18 lines
321 B
Bash
Executable File

#!/bin/bash
DEST="../lib/jquery.i18n";
CLONEDIR="/tmp/jquery.i18n";
HERE=$(pwd);
UPSTREAM="https://github.com/wikimedia/jquery.i18n.git";
echo -e "Getting latest jquery.i18n from $UPSTREAM\n";
if [ -d $CLONEDIR ]; then
git pull;
else
git clone $UPSTREAM $CLONEDIR;
fi
cd "$HERE";
cp -rf $CLONEDIR/src/* $DEST