Skip to content

Commit

Permalink
Merge pull request #8 from breeze2501/patch-1
Browse files Browse the repository at this point in the history
fix: do not delete existing files in `/usr/local/bin/`
  • Loading branch information
mmchougule authored Dec 5, 2023
2 parents b1e7e74 + febb4c9 commit 0a24f5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ GZ_URL="https://github.com/Vistara-Labs/vimana/releases/download/vimana-${VIMANA

INTERNAL_DIR="/usr/local/bin/"
VIMANA_BIN_PATH="/usr/local/bin/vimana"
if [ -f "$VIMANA_BIN_PATH" ] || [ -f "$INTERNAL_DIR" ]; then
if [ -f "$VIMANA_BIN_PATH" ]; then
sudo rm -f "$VIMANA_BIN_PATH"
sudo rm -rf "$INTERNAL_DIR"
fi
sudo mkdir -p "$INTERNAL_DIR"
sudo mkdir -p "/tmp/vimana_bins"
Expand Down

0 comments on commit 0a24f5b

Please sign in to comment.