From f37dafdf528bd2146a4c214b3ca5d14417310e6a Mon Sep 17 00:00:00 2001 From: Clément Martinez Date: Wed, 8 Jun 2016 08:32:50 +0200 Subject: Clean udisksctl --- share/completions/udisksctl.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/completions/udisksctl.fish b/share/completions/udisksctl.fish index f013b8e3..1b3376c9 100644 --- a/share/completions/udisksctl.fish +++ b/share/completions/udisksctl.fish @@ -4,7 +4,9 @@ set __fish_mount_opts async\tUse\ asynchronous\ I/O atime\tUpdate\ time\ on\ eac function __fish_print_mounted_blockdevice - grep "^/.*" /proc/mounts | cut -d " " -f 1 + if test -r /proc/mounts + string match -r "^/[^ ]*" < /proc/mounts + end end complete -f -c udisksctl -n "__fish_seen_subcommand_from $cmds" -l help -d "Shows help" -- cgit v1.2.3