aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-03-02 10:45:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-03-02 10:45:42 +0100
commitb0eab458b2d0ca3c07f4291c02263b37e8ac7e7b (patch)
tree0da825b3dee6346f125f2b09d580ad9474c1e446
parentSupport non root user and quote variable (diff)
downloadctmg-b0eab458b2d0ca3c07f4291c02263b37e8ac7e7b.tar.xz
ctmg-b0eab458b2d0ca3c07f4291c02263b37e8ac7e7b.zip
Shellcheck annotation
-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