webogram-i2p/update-angular.sh

12 lines
339 B
Bash
Raw Normal View History

2014-01-05 16:07:11 +00:00
#! /bin/sh
if [ -n "$1" ]; then
mkdir tmp
curl https://raw.github.com/angular/code.angularjs.org/master/$1/angular-$1.zip -o tmp/angular.zip
rm -fr app/vendor/angular
unzip tmp/angular.zip -d app/vendor
mv app/vendor/angular-$1 app/vendor/angular
rm -fr app/vendor/angular/docs
2014-01-05 16:07:11 +00:00
else
echo "Usage: update-angular <version>"
fi