Skip to content

Commit 2c54a45

Browse files
committed
fix(sshfs): work around bash-4.3 nounset
1 parent 0695e8a commit 2c54a45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

completions/sshfs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ _comp_cmd_sshfs()
88
_comp_expand || return
99

1010
if [[ $cur == *:* ]]; then
11-
_comp_compgen -x scp remote_files -d
12-
# unlike scp and rsync, sshfs works with 1 backslash instead of 3
13-
COMPREPLY=("${COMPREPLY[@]//\\\\\\/\\}")
11+
if _comp_compgen -x scp remote_files -d; then
12+
# unlike scp and rsync, sshfs works with 1 backslash instead of 3
13+
COMPREPLY=("${COMPREPLY[@]//\\\\\\/\\}")
14+
fi
1415
return
1516
fi
1617

0 commit comments

Comments
 (0)