Compare commits

..
2 Commits
Author SHA1 Message Date
Outis bc7b9c6bb0 Merge pull request #406 from outis1one/claude/wolf-pair-port-conflict-7nz8qg
Fix wolf.sh manage.sh apps: detect installed apps regardless of inden…
2026-08-31 16:24:48 -04:00
Claude c1a97d8945 Fix wolf.sh manage.sh apps: detect installed apps regardless of indentation
INSTALLED=$(sudo grep "^    name = 'Wolf" ...) required exactly 4 leading
spaces before name = 'Wolf...' in Wolf's own generated config.toml.
Confirmed live: Wolf's TOML writer doesn't reliably indent that way, so
this came back empty even with apps clearly installed and running,
printing "No Wolf apps installed yet". That's silently wrong in two
ways: the "Already installed: ..." message under-reports, and pressing
Enter at the apps prompt ("update mounts only") falls through to the
hardcoded `steam esde` default instead of actually refreshing whatever
was already there — so a mount fix for an already-installed app (e.g.
RetroArch) never gets applied by the Enter/no-picks path at all.

Relaxed the anchor to tolerate any amount of leading whitespace,
matching the Python injector's own already-installed check a few lines
later, which never anchored on indentation to begin with.
2026-08-31 20:21:36 +00:00
+7 -1
View File
@@ -1226,7 +1226,13 @@ case "$1" in
# Show which apps are already installed and what's available # Show which apps are already installed and what's available
echo "" echo ""
echo " Checking current Wolf config..." echo " Checking current Wolf config..."
INSTALLED=$(sudo grep "^ name = 'Wolf" "$WOLF_CFG" 2>/dev/null | sed "s/.*name = '//;s/'//" | tr '\n' ' ') # Any amount of leading whitespace (or none) — Wolf's own TOML writer
# doesn't reliably indent with exactly 4 spaces, and a stricter
# anchor here silently reports "No Wolf apps installed yet" even
# when apps clearly are (confirmed live), which then makes the
# Enter/"update mounts only" path fall back to the hardcoded
# steam+esde default instead of actually refreshing what's there.
INSTALLED=$(sudo grep -E "^[[:space:]]*name = 'Wolf" "$WOLF_CFG" 2>/dev/null | sed "s/.*name = '//;s/'//" | tr '\n' ' ')
[ -n "$INSTALLED" ] && echo " Already installed: $INSTALLED" || echo " No Wolf apps installed yet." [ -n "$INSTALLED" ] && echo " Already installed: $INSTALLED" || echo " No Wolf apps installed yet."
echo "" echo ""
echo " Available apps:" echo " Available apps:"