Skip to content

Commit

Permalink
fix install script on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Apr 2, 2024
1 parent 2cb14b9 commit f0add91
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,8 @@ tar -xzf /tmp/$ASSET_NAME -C /tmp
chmod +x /tmp/envhub

# Move the extracted binary to the installation directory
# use sudo if OS is Linux
if [ "$OS" = "Linux" ]; then
if command -v sudo >/dev/null 2>&1; then
sudo mv /tmp/envhub $INSTALL_DIR
else
mv /tmp/envhub $INSTALL_DIR
fi
if command -v sudo >/dev/null 2>&1; then
sudo mv /tmp/envhub $INSTALL_DIR
else
mv /tmp/envhub $INSTALL_DIR
fi
Expand Down

0 comments on commit f0add91

Please sign in to comment.