summaryrefslogtreecommitdiff
path: root/bin/dmount
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dmount')
-rwxr-xr-xbin/dmount8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/dmount b/bin/dmount
index 0cb7296..742dee1 100755
--- a/bin/dmount
+++ b/bin/dmount
@@ -65,12 +65,12 @@ _dmount_list() {
local -a list
local item
while read -r item; do
- list+=( "$item")
- done < <(dmount --list)
+ list+=( "\$item")
+ done < <($cmd --list)
COMPREPLY=()
while read -r item; do
- COMPREPLY+=( "${item@Q}" )
- done < <( compgen -W "${list[*]@Q}" -- "$2" )
+ COMPREPLY+=( "\${item\@Q}" )
+ done < <( compgen -W "\${list[*]\@Q}" -- "\$2" )
}
complete -F _dmount_list $cmd