* Script: https://github.com/koalaman/shellcheck * Use $(..) instead of deprecated `..` * Use double quote to prevent globbing and word splitting. Change-Id: I68372d4e29ae34e0704e5a605447ad17bf0666d7
18 lines
334 B
Bash
Executable File
18 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DEST="../lib/jquery.uls";
|
|
CLONEDIR="/tmp/jquery.uls";
|
|
HERE=$(pwd);
|
|
UPSTREAM="https://github.com/wikimedia/jquery.uls.git";
|
|
|
|
echo -e "Getting latest jquery.uls from $UPSTREAM\n";
|
|
|
|
if [ -d $CLONEDIR ]; then
|
|
git pull;
|
|
else
|
|
git clone $UPSTREAM $CLONEDIR;
|
|
fi
|
|
|
|
cd "$HERE";
|
|
cp -rf $CLONEDIR/{images,css,src,i18n} $DEST
|