Merge pull request #29 from Androbin/gci
Refactor pull-all.sh Script
diff --git a/scripts/Unix/initial-setup.sh b/scripts/Unix/initial-setup.sh
index 13e8796..a0adb63 100755
--- a/scripts/Unix/initial-setup.sh
+++ b/scripts/Unix/initial-setup.sh
@@ -8,7 +8,7 @@
ERRORS=""
FAILEDMODULES=""
get_modules() {
- for module in $@
+ for module in "$@"
do
git clone https://github.com/$githubAccount/$module.git
pushd $module
@@ -101,11 +101,11 @@
# REM initialize Web App
git clone https://github.com/$githubAccount/fims-web-app.git
+(
cd fims-web-app
git remote add upstream https://github.com/mifosio/fims-web-app.git
npm i
-
-cd ..
+)
if [ ! -z "$ERRORS" ] ; then
echo "********************"