From c34dd29cd1160c7f566af3932ed3c30fa1a5ed15 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 03:07:20 +0000 Subject: [PATCH] fix(wolf): regex bug was skipping all mounted drives in picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ^(/|/boot|...) — the bare / alternate matches every absolute path, so every non-home mount was silently skipped. Replace with explicit glob checks so only root, system paths, and [SWAP] are excluded. Fixes /home/user/drives/1tb-space (and any other secondary mount) not appearing in the numbered list. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs --- services/wolf.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/services/wolf.sh b/services/wolf.sh index b64b0a0..3026c14 100644 --- a/services/wolf.sh +++ b/services/wolf.sh @@ -528,11 +528,18 @@ UDEV _CAND_UUID[0]="${_home_uuid:-n/a}" _ci=1 - # Mounted partitions — skip /, /boot*, /snap*, /tmp, home itself - local _skip_re="^(/|/boot|/snap|/tmp|/run|/sys|/proc|/dev)" + # Mounted partitions — skip root, system paths, and home itself while IFS= read -r _mnt; do [[ -z "$_mnt" ]] && continue - [[ "$_mnt" =~ $_skip_re ]] && continue + [[ "$_mnt" == "/" ]] && continue + [[ "$_mnt" == /boot* ]] && continue + [[ "$_mnt" == /snap* ]] && continue + [[ "$_mnt" == /tmp* ]] && continue + [[ "$_mnt" == /run* ]] && continue + [[ "$_mnt" == /sys* ]] && continue + [[ "$_mnt" == /proc* ]] && continue + [[ "$_mnt" == /dev* ]] && continue + [[ "$_mnt" == "[SWAP]" ]] && continue [[ "$_mnt" == "$ACTUAL_HOME" ]] && continue local _dev _label _size _free _uuid _dev=$(df "$_mnt" 2>/dev/null | awk 'NR==2{print $1}')