From bd220b275cb8383f6c2d1231180525ad5f5a71aa Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 12 Feb 2022 18:15:29 -0700 Subject: [PATCH] dev: correct bash conditional for CI auth Signed-off-by: Stephen Gutekanst --- dev/update-subrepos.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/update-subrepos.sh b/dev/update-subrepos.sh index c869b63d..e64ef6c4 100755 --- a/dev/update-subrepos.sh +++ b/dev/update-subrepos.sh @@ -2,12 +2,12 @@ set -exuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")"/.. -if [[ -z ${GITHUB_ACTIONS+""} ]]; then - git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true - git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true -else +if [ -n "$GITHUB_ACTIONS" ]; then git remote add -f mach-glfw "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-glfw" || true git remote add -f mach-gpu-dawn "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-gpu-dawn" || true +else + git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true + git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true fi git fetch mach-glfw