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 1/4] 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 From 7b671c649d758ffb14d40e27388dcc688a7eb719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20Demir?= Date: Sun, 24 Mar 2024 23:21:16 +0300 Subject: [PATCH 2/4] Update blackdagger-installer.sh --- scripts/blackdagger-installer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/blackdagger-installer.sh b/scripts/blackdagger-installer.sh index 8d560ac..a37ed9a 100644 --- a/scripts/blackdagger-installer.sh +++ b/scripts/blackdagger-installer.sh @@ -87,12 +87,12 @@ 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 +# Check if /usr/bin/ exists, if not, create it +if [ ! -d "/usr/bin" ]; then + sudo mkdir -p /usr/bin/ fi -sudo mv "./blackdagger" /usr/local/bin/ -echo "blackdagger has been downloaded, extracted, and moved to /usr/local/bin successfully." +sudo mv "./blackdagger" /usr/bin/ +echo "blackdagger has been downloaded, extracted, and moved to /usr/bin/ successfully." # Cleanup rm -rf "$TMPDIR" "blackdagger" "$@" From 949a428b4b1d1bd87613847ec9896375e01d5a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20Demir?= Date: Mon, 25 Mar 2024 13:39:12 +0300 Subject: [PATCH 3/4] Update gotty.sh --- scripts/gotty.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/gotty.sh b/scripts/gotty.sh index 999acbe..3b6f625 100644 --- a/scripts/gotty.sh +++ b/scripts/gotty.sh @@ -38,9 +38,14 @@ if [ ! -f "${TMPDIR}/gotty" ]; then exit 1 fi -# Move gotty to /usr/local/bin to make it globally accessible -sudo mv "${TMPDIR}/gotty" /usr/local/bin/ -echo "gotty has been downloaded, extracted, and moved to /usr/local/bin successfully." +# Check if /usr/bin exists, if not, create it +if [ ! -d "/usr/bin/" ]; then + sudo mkdir -p /usr/bin/ +fi + +# Move gotty to /usr/bin to make it globally accessible +sudo mv "${TMPDIR}/gotty" /usr/bin/ +echo "gotty has been downloaded, extracted, and moved to /usr/bin successfully." # Cleanup rm -rf "$TMPDIR" From 50b0663ef8ef955e30ac6bbb94253510e9e53ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ak=C4=B1n=20Demir?= Date: Mon, 25 Mar 2024 13:48:27 +0300 Subject: [PATCH 4/4] Update gotty.sh --- scripts/gotty.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/gotty.sh diff --git a/scripts/gotty.sh b/scripts/gotty.sh old mode 100644 new mode 100755 index 3b6f625..ec566a1 --- a/scripts/gotty.sh +++ b/scripts/gotty.sh @@ -38,14 +38,14 @@ if [ ! -f "${TMPDIR}/gotty" ]; then exit 1 fi -# Check if /usr/bin exists, if not, create it +# Check if /usr/bin/ exists, if not, create it if [ ! -d "/usr/bin/" ]; then sudo mkdir -p /usr/bin/ fi # Move gotty to /usr/bin to make it globally accessible sudo mv "${TMPDIR}/gotty" /usr/bin/ -echo "gotty has been downloaded, extracted, and moved to /usr/bin successfully." +echo "gotty has been downloaded, extracted, and moved to /usr/bin/ successfully." # Cleanup rm -rf "$TMPDIR"