Skip to content

Commit 1505f0a

Browse files
authored
Added repo to fetch cera (#1438)
Issue 1437: includs added alias, renamed clone dir Resolves #1437.
1 parent cb2709d commit 1505f0a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

bin/fetch

+12-4
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,24 @@ case "${ITEM}" in
6060
;;
6161
cera)
6262
mkdir $SCRIPTDIR/git 2> /dev/null
63+
6364
pushd $SCRIPTDIR/git > /dev/null 2>&1
6465
if [ -d ./cera-asgs-environment ]; then
6566
cd ./cera-asgs-environment > /dev/null 2>&1
6667
git pull origin master
67-
popd > /dev/null 2>&1
68-
exit
68+
else
69+
git clone git@github.com:CERA-GROUP/cera-asgs-environment.git $SCRIPTDIR/git/cera-asgs-environment
6970
fi
70-
git clone git@github.com:CERA-GROUP/cera-asgs-environment.git $SCRIPTDIR/git/cera-asgs-environment
71+
popd > /dev/null 2>&1
7172

72-
popd > /dev/null 2>&1
73+
pushd $SCRIPTDIR/git > /dev/null 2>&1
74+
if [ -d ./asgs-local-assets ]; then
75+
cd ./asgs-local-assets > /dev/null 2>&1
76+
git pull origin main
77+
else
78+
git clone git@github.com:CERA-GROUP/asgs-local-assets.git $SCRIPTDIR/git/cera-asgs-local-assets
79+
fi
80+
popd > /dev/null 2>&1
7381
;;
7482
ourperl)
7583
mkdir $SCRIPTDIR/git 2> /dev/null

cloud/general/DOT-asgs-brew.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ alias amond="goto $SCRIPTDIR/git/asgs-mon" # cd
12211221
alias amonv="asgs-mon -v" # run 'asgs-mon -v' (it's in PATH)
12221222
alias cera="goto $SCRIPTDIR/git/cera-asgs-environment" # cd into cera-asgs-environment's directory
12231223
alias cerad="goto $SCRIPTDIR/git/cera-asgs-environment/asgs-configs-daily" # cd into cera-asgs-environment's daily configs directory
1224+
alias ceralocal="goto $SCRIPTDIR/git/cera-asgs-local-assets" # cd into asgs-local-assets
12241225
alias docsd="goto $SCRIPTDIR/git/asgs.wiki" # cd into asgs.wiki's directory
12251226
alias gc="goto configdir" # cd to the directory containing ASGS_CONFIG if set
12261227

0 commit comments

Comments
 (0)