diff --git a/completion/available/sqlmap.completion.bash b/completion/available/sqlmap.completion.bash index 213dd81736..af3b4f465d 100644 --- a/completion/available/sqlmap.completion.bash +++ b/completion/available/sqlmap.completion.bash @@ -79,7 +79,7 @@ then ;; esac - if [[ "$cur" == * ]]; then + if [[ "$cur" == * ]]; then COMPREPLY=( $( compgen -W '-h --help -hh --version -v -d -u --url -l -x -m -r -g -c --method \ --data --param-del --cookie --cookie-del --load-cookies \ --drop-set-cookie --user-agent --random-agent --host --referer \ @@ -145,8 +145,7 @@ then --sqlmap-shell --wizard ' COMPREPLY=( $( \ (while read -d ' ' i; do - [[ -z "$i" || "${onlyonce/ ${i%% *} / }" == "$onlyonce" ]] && - continue + [[ -z "$i" || "${onlyonce/ ${i%% *} / }" == "$onlyonce" ]] && continue # flatten array with spaces on either side, # otherwise we cannot grep on word boundaries of # first and last word