aboutsummaryrefslogtreecommitdiffstats
path: root/ctmg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ctmg.sh')
-rwxr-xr-xctmg.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctmg.sh b/ctmg.sh
index f298a4e..2c34dc9 100755
--- a/ctmg.sh
+++ b/ctmg.sh
@@ -134,6 +134,7 @@ cmd_delete() {
cmd_list() {
[[ $# -ne 0 ]] && die "Usage: $PROGRAM list"
+ # shellcheck disable=SC2155
local mount_points="$(sed -n "s:^/dev/mapper/${CT_MAPPER_PREFIX}[^ ]* \\([^ ]\\+\\).*:\\1:p" /proc/mounts)"
[[ -n $mount_points ]] && echo -e "$mount_points" && return 0
return 1