mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix: STEAMIFY_NO_DOWNLOAD finds the bundle through BASH_SOURCE (a bundle has no SCRIPT_DIR: the install failed with an unbound variable)
This commit is contained in:
1 parent
3cae62292b
commit
e708c6d545
1 file changed
+4
-3
+4
-3
@@ -12,9 +12,10 @@ FIRST_LOGIN_BUNDLE="$STEAMIFY_BIN/first-login-steamify.sh"
|
|||||||
first_login_schedule() {
|
first_login_schedule() {
|
||||||
# The newest release's Steamify runs at the first login. STEAMIFY_NO_DOWNLOAD (the ISO was started with
|
# The newest release's Steamify runs at the first login. STEAMIFY_NO_DOWNLOAD (the ISO was started with
|
||||||
# steamify.nodownload, to test an unreleased Steamify): this very bundle runs instead.
|
# steamify.nodownload, to test an unreleased Steamify): this very bundle runs instead.
|
||||||
local run
|
# (Only a single-file bundle can be copied; SCRIPT_DIR doesn't exist in one.)
|
||||||
if [[ -n "${STEAMIFY_NO_DOWNLOAD:-}" && -f "$SCRIPT_DIR/steamify.sh" && ! -d "$SCRIPT_DIR/lib" ]]; then
|
local run self="${BASH_SOURCE[0]:-}"
|
||||||
install_executable "$FIRST_LOGIN_BUNDLE" 755 < "$SCRIPT_DIR/steamify.sh"
|
if [[ -n "${STEAMIFY_NO_DOWNLOAD:-}" && -f "$self" ]] && grep -q '^# Single-file build' "$self"; then
|
||||||
|
install_executable "$FIRST_LOGIN_BUNDLE" 755 < "$self"
|
||||||
run="bash \"$FIRST_LOGIN_BUNDLE\" --first-login; rm -f \"$FIRST_LOGIN_BUNDLE\""
|
run="bash \"$FIRST_LOGIN_BUNDLE\" --first-login; rm -f \"$FIRST_LOGIN_BUNDLE\""
|
||||||
else
|
else
|
||||||
run="curl -fsSL --max-time 30 \"$WIZARD_URL\" | bash -s -- --first-login"
|
run="curl -fsSL --max-time 30 \"$WIZARD_URL\" | bash -s -- --first-login"
|
||||||
|
|||||||
Reference in new issue
Block a user