Fixes deployment when using envvar BRANCH=main. No issue #
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 15 Aug 2023 13:53:05 +0000 (10:53 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 15 Aug 2023 13:53:05 +0000 (10:53 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/salt-install/provision.sh

index 3aa94aa58537dc0d7987740513eeb2553ea748e9..6e5bdf2491b1b8b27bb16442ac423985b4c91fad 100755 (executable)
@@ -450,7 +450,7 @@ echo "...arvados"
 test -d arvados || git clone --quiet https://git.arvados.org/arvados-formula.git ${F_DIR}/arvados
 
 # If we want to try a specific branch of the formula
-if [ "x${BRANCH:-}" != "x" ]; then
+if [ "x${BRANCH:-}" != "xmain" ]; then
   ( cd ${F_DIR}/arvados && git checkout --quiet -t origin/"${BRANCH}" -b "${BRANCH}" )
 elif [ "x${ARVADOS_TAG:-}" != "x" ]; then
   ( cd ${F_DIR}/arvados && git checkout --quiet tags/"${ARVADOS_TAG}" -b "${ARVADOS_TAG}" )