1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fix bash completion install

- `^(HASHCAT_ROOT=)` instead of `^(ROOT=)`
- single quotation instead of double quotation
to avoid `bash: !\1\: event not found` error
This commit is contained in:
Xeonacid 2024-03-09 20:32:26 +08:00 committed by GitHub
parent fafb277e07
commit 5a817a7fee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,7 +141,7 @@ if [ -d "${COMPGENFOLDER}" ]; then
# adjust paths to the main binaries of hashcat
sed -ri "s!^(ROOT=).*!\1\"${ROOT_PARENT}\"!" "${COMPGENTARGET}"
sed -ri 's!^(HASHCAT_ROOT=).*!\1\"${ROOT_PARENT}\"!' "${COMPGENTARGET}"
# add the compgen to bashrc if not already there