We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330f1d0 commit 37688f0Copy full SHA for 37688f0
scripts/devcontainer_use_prebuilt.sh
@@ -101,9 +101,9 @@ else
101
SETTINGS_URL="https://github.com/users/${OWNER}/packages/container/${ENCODED_PACKAGE}/settings"
102
fi
103
104
-API_OUTPUT=$(gh api --method PATCH "$API_PATH" -f visibility=public 2>&1) && {
+if API_OUTPUT=$(gh api --method PATCH "$API_PATH" -f visibility=public 2>&1); then
105
echo "GHCR package is now public."
106
-} || {
+else
107
echo "Could not set package visibility automatically."
108
echo "API response: $API_OUTPUT"
109
echo ""
0 commit comments