diff options
Diffstat (limited to 'completions/smbclient')
-rw-r--r-- | completions/smbclient | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/smbclient b/completions/smbclient index ceda7bbf..b7371907 100644 --- a/completions/smbclient +++ b/completions/smbclient @@ -7,14 +7,14 @@ _samba_resolve_order() _samba_domains() { - if [ -n "${COMP_SAMBA_SCAN:-}" ]; then + if [[ -n ${COMP_SAMBA_SCAN:-} ]]; then COMPREPLY=( $( compgen -W '$( smbtree -N -D )' -- "$cur" ) ) fi } _samba_hosts() { - if [ -n "${COMP_SAMBA_SCAN:-}" ]; then + if [[ -n ${COMP_SAMBA_SCAN:-} ]]; then COMPREPLY=( $( compgen -W "$( smbtree -N -S | \ sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p' \ )" -- $cur ) ) |