2016-07-11 15:54:29 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-07-18 15:59:42 -07:00
|
|
|
set -e -o pipefail
|
2016-07-11 15:54:29 +01:00
|
|
|
|
2016-07-18 15:59:42 -07:00
|
|
|
[[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh
|
|
|
|
|
|
|
|
if [[ -e "$NG2_REPO" ]]; then
|
2016-09-20 05:24:40 +02:00
|
|
|
echo Angular repo is already present at: $NG2_REPO
|
2016-07-18 15:59:42 -07:00
|
|
|
else
|
|
|
|
travis_fold start install.ng2
|
2016-09-20 05:24:40 +02:00
|
|
|
echo GETTING Angular from GitHub ...
|
2016-07-18 15:59:42 -07:00
|
|
|
set -x
|
2016-09-15 17:47:12 +01:00
|
|
|
git clone https://github.com/angular/angular.git $NG2_REPO
|
|
|
|
git -C $NG2_REPO checkout $LATEST_RELEASE
|
2016-07-18 15:59:42 -07:00
|
|
|
set +x
|
|
|
|
travis_fold end install.ng2
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo INSTALLED repos:
|
|
|
|
ls -ld ../a*
|