Skip to content

Commit 5137be1

Browse files
Copilotnighca
andauthored
refactor: simplify spx install fallback flow
Agent-Logs-Url: https://github.com/goplus/builder/sessions/9bff7c43-def4-467f-a4ff-6500f5bd83c4 Co-authored-by: nighca <1492263+nighca@users.noreply.github.com>
1 parent f1c582c commit 5137be1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

spx-gui/install-spx.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ trap 'rm -rf "${SPX_STAGING_DIR}"' EXIT
2121
rm -rf "${SPX_STAGING_DIR}"
2222
mkdir -p "${SPX_STAGING_DIR}"
2323

24-
if wget -O "${SPX_ZIP_PATH}" "${SPX_RELEASE_URL}"; then
25-
:
26-
else
24+
if ! wget -O "${SPX_ZIP_PATH}" "${SPX_RELEASE_URL}"; then
2725
rm -f "${SPX_ZIP_PATH}"
2826
ghcr_token="$(wget -qO- "https://ghcr.io/token?service=ghcr.io&scope=repository:goplus/spx:pull" | awk -F'"' '/"token":/{print $4}')"
2927
if [[ -z "${ghcr_token}" ]]; then

0 commit comments

Comments
 (0)