Skip to content

Commit

Permalink
Install: Use simple grep, should be suitable for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kovshenin committed Nov 10, 2021
1 parent 8551589 commit 6604112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi

$SUDO mkdir $INSTALL_DIR || abort "Could not create directory ${INSTALL_DIR}. Are you root?"
cd $INSTALL_DIR || abort "Could not enter directory ${INSTALL_DIR}. Make sure you have correct permissions."
TARGET_VERSION=$(curl --silent "https://api.github.com/repos/kovshenin/sail/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
TARGET_VERSION=$(curl --silent "https://api.github.com/repos/kovshenin/sail/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')

if [ -z $TARGET_VERSION ]; then
TARGET_VERSION="main"
Expand Down

0 comments on commit 6604112

Please sign in to comment.