diff --git a/services/wolf.sh b/services/wolf.sh index 4b4251b..c22d2dc 100644 --- a/services/wolf.sh +++ b/services/wolf.sh @@ -1226,7 +1226,13 @@ case "$1" in # Show which apps are already installed and what's available echo "" 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." echo "" echo " Available apps:"