diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-27 17:46:43 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-27 17:46:43 +0900 |
| commit | bdb59276699429f4044f6abf522b610f1f6b95e7 (patch) | |
| tree | 4f802f86b275ed915f14323f4d8bb4f294e15a39 | |
| parent | fae1b51643c9d105760666dab5cef471f4d6042b (diff) | |
modified bin/mounter
| -rwxr-xr-x | ar/.local/bin/mounter | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/mounter b/ar/.local/bin/mounter index 46fd071..3d9807c 100755 --- a/ar/.local/bin/mounter +++ b/ar/.local/bin/mounter @@ -132,7 +132,7 @@ smbshares="$(echo "$smbshares" | sed '/^$/d')" mountedsmb="${mountedsmb%% *}" [[ "$mountedsmb" =~ $smb ]] && break 1 done && continue 1 - echo "📡 $smb" + echo "📡 ${smb#//*}" done)" # Add all to one variable. If no mountable drives found, exit. @@ -196,14 +196,14 @@ case "$chosen" in notify-send "🍎 iPhone Mounted." "$chosen mounted to $mp." ;; 📡*) - chosen="${chosen##* }" + chosen="//${chosen##* }" path="${chosen##*/}" if getmount "/media/$USER/$path"; then sudo -A mount -t cifs -o username="$(whoami)",password="$(pass show default/default)" "$chosen" "$mp" 2>/dev/null || sudo -A mount -t cifs -o username="$(whoami)",password="$(pass show default/windows)" "$chosen" "$mp" 2>/dev/null else notify-send "❌ Failed to mount samba" "$chosen -Check if $(whoami) is added to samba user list." + Check if $(whoami) is added to samba user list." sudo rm -rf "$mp" exit fi |
