Skip to content

Commit 37688f0

Browse files
committed
Fix syntax error in gh api error handling
1 parent 330f1d0 commit 37688f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/devcontainer_use_prebuilt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ else
101101
SETTINGS_URL="https://github.com/users/${OWNER}/packages/container/${ENCODED_PACKAGE}/settings"
102102
fi
103103

104-
API_OUTPUT=$(gh api --method PATCH "$API_PATH" -f visibility=public 2>&1) && {
104+
if API_OUTPUT=$(gh api --method PATCH "$API_PATH" -f visibility=public 2>&1); then
105105
echo "GHCR package is now public."
106-
} || {
106+
else
107107
echo "Could not set package visibility automatically."
108108
echo "API response: $API_OUTPUT"
109109
echo ""

0 commit comments

Comments
 (0)