From bc4f6f36c5ee0d89513cd9c5ec4241f1f441908e Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 4 Mar 2022 17:40:57 -0700 Subject: [PATCH] dev: dont complain about unbound GITHUB_ACTIONS env var when pushing subrepos Signed-off-by: Stephen Gutekanst --- dev/update-subrepos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/update-subrepos.sh b/dev/update-subrepos.sh index e64ef6c4..0eab69e0 100755 --- a/dev/update-subrepos.sh +++ b/dev/update-subrepos.sh @@ -2,7 +2,7 @@ set -exuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")"/.. -if [ -n "$GITHUB_ACTIONS" ]; then +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