wolf: fix auto steam-setup-frontends invocation ($0 resolution)
install_wolf()'s new auto-wire-up called it as 'bash manage.sh steam-setup-frontends', which sets $0 inside manage.sh to the bare string 'manage.sh' (no path). steam-setup-frontends re-invokes itself per emulator via "$0" steam-add-nonsteam-game ..., and a bare 'manage.sh' with no '/' triggers a $PATH lookup instead of running the local file — confirmed live: every emulator already downloaded (Azahar, PCSX2, Cemu, Dolphin) failed with 'manage.sh: command not found' and the run ended with a false "No emulator AppImages found" even though they were sitting right there in emulators/. Invoking it as './manage.sh' instead keeps $0 as './manage.sh', which resolves correctly for the nested re-invocation, matching how every other caller in this file already runs it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BWYKEERLA1a7gv86Z4W23
This commit is contained in:
+1
-1
@@ -5022,7 +5022,7 @@ PYEOF
|
||||
| while IFS= read -r _sd; do ls "$_sd/.steam/steam/userdata/" 2>/dev/null | head -1; done | head -1)
|
||||
if [ -n "$_WOLF_ANY_STEAM_UID" ]; then
|
||||
log_info "Steam is already signed in — adding downloaded emulators to Steam's library..."
|
||||
(cd "$WOLF_DIR" && bash manage.sh steam-setup-frontends) \
|
||||
(cd "$WOLF_DIR" && ./manage.sh steam-setup-frontends) \
|
||||
|| log_warning "Couldn't auto-add emulators to Steam — run manually: cd $WOLF_DIR && ./manage.sh steam-setup-frontends"
|
||||
else
|
||||
log_info "Once you've signed into Steam via Moonlight, run this to add every downloaded"
|
||||
|
||||
Reference in New Issue
Block a user