mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-09-27 20:29:01 +00:00
restore square parens detection in list_tomb_mounts()
This commit is contained in:
parent
3f107f9d31
commit
b72d67618b
6
tomb
6
tomb
@ -2274,8 +2274,12 @@ BEGIN { main="" }
|
||||
'
|
||||
} || {
|
||||
# list a specific tomb
|
||||
# add square parens if not present (detection)
|
||||
local tname
|
||||
if [[ "${1[1]}" = "[" ]]; then tname="$1"
|
||||
else tname="[$1]"; fi
|
||||
_sudo findmnt -rvo SOURCE,TARGET,FSTYPE,OPTIONS,LABEL \
|
||||
| awk -vtomb="[$1]" '
|
||||
| awk -vtomb="$tname" '
|
||||
BEGIN { main="" }
|
||||
/^\/dev\/mapper\/tomb/ {
|
||||
if("["$5"]"!=tomb) next;
|
||||
|
Loading…
Reference in New Issue
Block a user