summaryrefslogtreecommitdiff
path: root/contrib/mount
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mount')
-rw-r--r--contrib/mount4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/mount b/contrib/mount
index f9fafb17..d8ba81bc 100644
--- a/contrib/mount
+++ b/contrib/mount
@@ -18,8 +18,8 @@ _mount()
if [[ "$cur" == *:* ]]; then
for sm in $(type -P showmount) {,/usr}/{,s}bin/showmount; do
- [ -x $sm ] || continue
- COMPREPLY=( $( compgen -W "$( $sm -e ${cur%%:*} | \
+ [ -x "$sm" ] || continue
+ COMPREPLY=( $( compgen -W "$( "$sm" -e ${cur%%:*} | \
awk 'NR>1 {print $1}' )" -- "${cur#*:}" ) )
return 0
done