completions/sqlmap: use _command_exists

Addresses bash-it/bash-it#1632
This commit is contained in:
John D Pell
2021-09-19 10:39:19 -07:00
parent 8a03f451b2
commit fb6e05d915

View File

@@ -1,4 +1,4 @@
#!/bin/bash
# shellcheck shell=bash
# ---------------------------------------------------------------------------+
# |
@@ -7,15 +7,16 @@
# |
# ---------------------------------------------------------------------------+
if command -v sqlmap > /dev/null; then
if _command_exists sqlmap
then
_sqlmap()
function _sqlmap()
{
local cur prev
COMPREPLY=()
cur=$(_get_cword)
prev=$(_get_pword)
cur="$(_get_cword)"
prev="$(_get_pword)"
case $prev in