File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,24 @@ case "${ITEM}" in
60
60
;;
61
61
cera)
62
62
mkdir $SCRIPTDIR /git 2> /dev/null
63
+
63
64
pushd $SCRIPTDIR /git > /dev/null 2>&1
64
65
if [ -d ./cera-asgs-environment ]; then
65
66
cd ./cera-asgs-environment > /dev/null 2>&1
66
67
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
69
70
fi
70
- git clone git@github.com:CERA-GROUP/cera-asgs-environment.git $SCRIPTDIR /git/cera-asgs-environment
71
+ popd > /dev/null 2>&1
71
72
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
73
81
;;
74
82
ourperl)
75
83
mkdir $SCRIPTDIR /git 2> /dev/null
Original file line number Diff line number Diff line change @@ -1221,6 +1221,7 @@ alias amond="goto $SCRIPTDIR/git/asgs-mon" # cd
1221
1221
alias amonv=" asgs-mon -v" # run 'asgs-mon -v' (it's in PATH)
1222
1222
alias cera=" goto $SCRIPTDIR /git/cera-asgs-environment" # cd into cera-asgs-environment's directory
1223
1223
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
1224
1225
alias docsd=" goto $SCRIPTDIR /git/asgs.wiki" # cd into asgs.wiki's directory
1225
1226
alias gc=" goto configdir" # cd to the directory containing ASGS_CONFIG if set
1226
1227
You can’t perform that action at this time.
0 commit comments