From 586d4f8228b7333dd4acc9b0d0466bb746bac62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20Demir?= Date: Sat, 23 Mar 2024 20:24:35 +0300 Subject: [PATCH] Update blackdagger-installer.sh --- scripts/blackdagger-installer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/blackdagger-installer.sh b/scripts/blackdagger-installer.sh index 088c2b0..8d560ac 100644 --- a/scripts/blackdagger-installer.sh +++ b/scripts/blackdagger-installer.sh @@ -87,6 +87,10 @@ tar -xf "$TAR_FILE" -C "$TMPDIR" cp "${TMPDIR}/blackdagger" ./ echo # blank for sudo prompt +# Check if /usr/local/bin exists, if not, create it +if [ ! -d "/usr/local/bin" ]; then + sudo mkdir -p /usr/local/bin +fi sudo mv "./blackdagger" /usr/local/bin/ echo "blackdagger has been downloaded, extracted, and moved to /usr/local/bin successfully." # Cleanup