mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-28 02:42:36 +00:00
Merge pull request #2027 from philsmd/patch-6
tab completion: allow using "install version" of hashcat
This commit is contained in:
commit
15d1c75997
@ -17,9 +17,17 @@ _hashcat_backend_devices ()
|
|||||||
if [ ! -x "${executable}" ]; then
|
if [ ! -x "${executable}" ]; then
|
||||||
executable="${HASHCAT_ROOT}"/hashcat.bin
|
executable="${HASHCAT_ROOT}"/hashcat.bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -x "${executable}" ]; then
|
||||||
|
local which_hashcat=$(which hashcat 2>/dev/null)
|
||||||
|
|
||||||
|
if [ -n "${which_hashcat}" ]; then
|
||||||
|
executable="${which_hashcat}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -x "${executable}" ]; then
|
if [ ! -x "${executable}" ]; then
|
||||||
return ""
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove separator at the end (if present)
|
# remove separator at the end (if present)
|
||||||
@ -134,7 +142,7 @@ _hashcat_backend_devices ()
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# we add it because we didn't find any conflict:
|
# we add it because we didn't find any conflicts:
|
||||||
|
|
||||||
if [ -z "${hashcat_device_list}" ]; then
|
if [ -z "${hashcat_device_list}" ]; then
|
||||||
hashcat_device_list="${device_str}"
|
hashcat_device_list="${device_str}"
|
||||||
|
Loading…
Reference in New Issue
Block a user