diff options
| author | 2016-03-02 10:45:42 +0100 | |
|---|---|---|
| committer | 2016-03-02 10:45:42 +0100 | |
| commit | b0eab458b2d0ca3c07f4291c02263b37e8ac7e7b (patch) | |
| tree | 0da825b3dee6346f125f2b09d580ad9474c1e446 | |
| parent | Support non root user and quote variable (diff) | |
| download | ctmg-b0eab458b2d0ca3c07f4291c02263b37e8ac7e7b.tar.xz ctmg-b0eab458b2d0ca3c07f4291c02263b37e8ac7e7b.zip | |
Shellcheck annotation
| -rwxr-xr-x | ctmg.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
