Fix seba_charts submodule update
[iec.git] / src / use_cases / seba_on_arm / install / install.sh
index 5fd5fca..1208325 100755 (executable)
@@ -3,7 +3,7 @@
 
 #Modified from https://github.com/cachengo/seba_charts/blob/master/scripts/installSEBA.sh
 
-basepath=$(cd `dirname $0`; pwd)
+basepath=$(cd "$(dirname "$0")"; pwd)
 CORD_REPO=${CORD_REPO:-https://charts.opencord.org}
 CORD_PLATFORM_VERSION=${CORD_PLATFORM_VERSION:-6.1.0}
 SEBA_VERSION=${SEBA_VERSION:-1.0.0}
@@ -39,7 +39,7 @@ wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Runnin
 if [ "$(uname -m)" == "aarch64" ]; then
   if [ ! -d ${CORD_CHART}/cord-platform ]; then
     #git clone https://github.com/iecedge/seba_charts ${CORD_CHART}
-    cd ${basepath}/../src_repo && git submodule update seba_charts
+    cd ${basepath}/../src_repo && git submodule update --init seba_charts
   fi
 else
   helm repo add cord "${CORD_REPO}"