Skip to content

Commit

Permalink
Update blackdagger-installer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
akindemirsec committed Mar 24, 2024
1 parent 586d4f8 commit 7b671c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/blackdagger-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit 7b671c6

Please sign in to comment.