Skip to content

OSINT & recon toolkit // 100+ tools, one-command installer, SOCMINT, GEOINT, network recon, dark web, forensics & more.

Don't let git prompt for credentials when a repo is gone

barnia690604d9471
diff --git a/blueteam.sh b/blueteam.sh
index c6767e6..20d6345 100644
--- a/blueteam.sh
+++ b/blueteam.sh
@@ -120,7 +120,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
local image="$1" name="$2"
diff --git a/extras.sh b/extras.sh
index 8bf99c9..708ca14 100644
--- a/extras.sh
+++ b/extras.sh
@@ -123,7 +123,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
@@ -191,7 +191,7 @@ mkdir -p /opt/osint-arsenal
if [ -d "/opt/osint-arsenal/EyeWitness" ]; then
skip "EyeWitness already cloned"
else
- if git clone --depth=1 https://github.com/RedSiege/EyeWitness.git /opt/osint-arsenal/EyeWitness >/dev/null 2>&1; then
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 https://github.com/RedSiege/EyeWitness.git /opt/osint-arsenal/EyeWitness >/dev/null 2>&1; then
say "Compiling configuration and baseline assets for EyeWitness..."
if bash /opt/osint-arsenal/EyeWitness/Python/setup/setup.sh -y >/dev/null 2>&1; then
ok "EyeWitness (git + set up)"
diff --git a/forensics.sh b/forensics.sh
index e5091b2..f156b3c 100644
--- a/forensics.sh
+++ b/forensics.sh
@@ -123,7 +123,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
@@ -219,7 +219,7 @@ mkdir -p /opt/osint-arsenal
if [ -d "/opt/osint-arsenal/EyeWitness" ]; then
skip "EyeWitness already cloned"
else
- if git clone --depth=1 https://github.com/RedSiege/EyeWitness.git /opt/osint-arsenal/EyeWitness >/dev/null 2>&1; then
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 https://github.com/RedSiege/EyeWitness.git /opt/osint-arsenal/EyeWitness >/dev/null 2>&1; then
say "Running baseline infrastructure setup for EyeWitness..."
if bash /opt/osint-arsenal/EyeWitness/Python/setup/setup.sh -y >/dev/null 2>&1; then
ok "EyeWitness (git + compiled)"
diff --git a/hardware.sh b/hardware.sh
index 8403476..77f7626 100644
--- a/hardware.sh
+++ b/hardware.sh
@@ -122,7 +122,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
diff --git a/labs.sh b/labs.sh
index 9308585..721dbf0 100644
--- a/labs.sh
+++ b/labs.sh
@@ -120,7 +120,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
local image="$1" name="$2"
diff --git a/osint.sh b/osint.sh
index 1c87bc3..194fcf3 100644
--- a/osint.sh
+++ b/osint.sh
@@ -120,7 +120,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
local image="$1" name="$2"
diff --git a/redteam.sh b/redteam.sh
index 168794c..5a74104 100644
--- a/redteam.sh
+++ b/redteam.sh
@@ -120,7 +120,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "/opt/osint-arsenal/$dst" >/dev/null 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
install_docker() {
local image="$1" name="$2"
diff --git a/termux.sh b/termux.sh
index cbce848..777e051 100644
--- a/termux.sh
+++ b/termux.sh
@@ -63,7 +63,7 @@ install_git() {
skip "$dst already cloned"
return
fi
- if git clone --depth=1 "$repo" "$HOME/osint-arsenal/$dst" >>"$LOGFILE" 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
+ if GIT_TERMINAL_PROMPT=0 git clone --depth=1 "$repo" "$HOME/osint-arsenal/$dst" >>"$LOGFILE" 2>&1; then ok "$dst (git)"; else fail "$dst (git)"; fi
}
say "Updating Termux ecosystem repositories..."