From: Alexandru Avadanii Date: Thu, 25 Jul 2019 14:12:31 +0000 (+0200) Subject: [seba] Fix compat with older git client X-Git-Tag: 2.0.0-AKRAINO~16^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F1260%2F1;p=iec.git [seba] Fix compat with older git client CentOS ships with an older version of `git`, which lacks certain features like updating submodules from a CWD different from git repo root. Work around these to avoid compatibility issues. Change-Id: Ibba156e7fb7edb41215f4be3893a3c1cc5d956d8 Signed-off-by: Alexandru Avadanii --- diff --git a/src/use_cases/seba_on_arm/install/install.sh b/src/use_cases/seba_on_arm/install/install.sh index eb9fbc1..b28d492 100755 --- a/src/use_cases/seba_on_arm/install/install.sh +++ b/src/use_cases/seba_on_arm/install/install.sh @@ -12,6 +12,7 @@ CORD_CHART=${CORD_CHART:-${basepath}/../src_repo/seba_charts} # TODO(alav): Make each step re-entrant +# shellcheck source=/dev/null source util.sh wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Running") -eq 1' @@ -19,9 +20,11 @@ wait_for 10 'test $(kubectl get pods --all-namespaces | grep -ce "tiller.*Runnin # Add the CORD repository and update indexes if [ "$(uname -m)" == "aarch64" ]; then - if [ ! -d ${CORD_CHART}/cord-platform ]; 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 --init seba_charts + cd "$(git rev-parse --show-toplevel)" + git submodule update --init "${CORD_CHART}" + cd "${basepath}/../src_repo" fi else helm repo add cord "${CORD_REPO}"