mirror of
https://github.com/zardus/ctf-tools
synced 2025-03-14 22:06:58 +00:00
check to make sure tool isn't already installed
This commit is contained in:
parent
c804f2940f
commit
d9f12ed0ea
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ case $ACTION in
|
|||
;;
|
||||
install)
|
||||
cd $TOOL
|
||||
if git status --ignored . | egrep -q 'Untracked|Ignored'
|
||||
then
|
||||
echo "TOOLS | $TOOL | appears to already be installed. Uninstall first?"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "TOOLS | $TOOL | starting install"
|
||||
[ -x ./install-root -a "$ALLOW_SUDO" -eq 1 ] && sudo ./install-root
|
||||
|
|
Loading…
Add table
Reference in a new issue