Skip to content

Commit

Permalink
Update gotty.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
akindemirsec committed Mar 25, 2024
1 parent 7b671c6 commit 949a428
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/gotty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 949a428

Please sign in to comment.