Skip to content

Commit

Permalink
Remove dependency on grep in installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Aug 10, 2024
1 parent 2b76578 commit f999281
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies=(
uname
tr
awk
grep
)

for dep in "${dependencies[@]}"; do
Expand Down Expand Up @@ -79,12 +78,11 @@ else
fi

# Check if the release was fetched successfully
if [ -z "$RELEASE_JSON_DATA" ] || echo "$RELEASE_JSON_DATA" | grep -q "Not Found"; then
if [ -z "$RELEASE_JSON_DATA" ] || [[ "$RELEASE_JSON_DATA" == *"Not Found"* ]]; then
echo "ERROR: Latest release was not found. Please check your network connection." >&2
exit 1
fi


# Try to extract the asset url from the response by searching for a
# matching asset name, and then picking the "url" that came before it
read RELEASE_ASSET_ID RELEASE_ASSET_NAME <<EOF
Expand Down

0 comments on commit f999281

Please sign in to comment.