Skip to content

Commit 180047c

Browse files
committed
refactor: COMP_SAMBA_SCAN -> BASH_COMPLETION_CMD_SMBTREE_SCAN
1 parent 9c1dc01 commit 180047c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/smbclient

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ _samba_resolve_order()
77

88
_samba_domains()
99
{
10-
if [[ ${COMP_SAMBA_SCAN-} ]]; then
10+
if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN-${COMP_SAMBA_SCAN-}} ]]; then
1111
COMPREPLY=($(compgen -W '$(smbtree -N -D)' -- "$cur"))
1212
fi
1313
}
1414

1515
_samba_hosts()
1616
{
17-
if [[ ${COMP_SAMBA_SCAN-} ]]; then
17+
if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN-${COMP_SAMBA_SCAN-}} ]]; then
1818
COMPREPLY=($(compgen -W "$(
1919
smbtree -N -S |
2020
command sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p'

0 commit comments

Comments
 (0)