From 9a33bf53e861d541b4eb137e779ee78a0540f293 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Thu, 28 Dec 2023 19:19:43 +0800 Subject: [PATCH] fix: status: unbound variable --- action.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.bash b/action.bash index 4e7ebb3..1847606 100755 --- a/action.bash +++ b/action.bash @@ -55,7 +55,7 @@ function npm_publish { delay="$((RANDOM%60))" echo "waiting ${delay} seconds..." sleep "$delay" - npm publish "$@" || status=$? + status=0 && npm publish "$@" || status=$? if test "$?" -eq 429; then npm_publish "$@" fi