diff options
Diffstat (limited to 'completions/iwconfig')
-rw-r--r-- | completions/iwconfig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/iwconfig b/completions/iwconfig index 81dda723..899f1493 100644 --- a/completions/iwconfig +++ b/completions/iwconfig @@ -13,7 +13,7 @@ _iwconfig() ;; essid) COMPREPLY=( $( compgen -W 'on off any' -- "$cur" ) ) - if [ -n "${COMP_IWLIST_SCAN:-}" ]; then + if [[ -n ${COMP_IWLIST_SCAN:-} ]]; then COMPREPLY+=( $( compgen -W \ "$( iwlist ${words[1]} scan | \ awk -F'\"' '/ESSID/ {print $2}' )" -- "$cur" ) ) @@ -37,7 +37,7 @@ _iwconfig() ;; ap) COMPREPLY=( $( compgen -W 'on off any' -- "$cur" ) ) - if [ -n "${COMP_IWLIST_SCAN:-}" ]; then + if [[ -n ${COMP_IWLIST_SCAN:-} ]]; then COMPREPLY+=( $( compgen -W \ "$( iwlist ${words[1]} scan | \ awk -F ': ' '/Address/ {print $2}' )" -- "$cur" ) ) @@ -73,7 +73,7 @@ _iwconfig() ;; esac - if [ $cword -eq 1 ]; then + if [[ $cword -eq 1 ]]; then if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '--help --version' -- "$cur" ) ) else |