Skip to content

Commit

Permalink
--silent get version body
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Feb 26, 2024
1 parent c4b8440 commit 4017016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ latest_version="https://api.github.com/repos/hemnstill/$self_name/releases/tags/
echo Get latest version: "$latest_version" ...
version_body="$MOCK_AUTOINSTALLCREATOR_VERSION_BODY"
if [[ -z $version_body ]]; then
version_body=$($curl --location "$latest_version" | "$grep" --only-matching '(?<="body":\s")[^,]+.' | cut -d '\r\n' -f 1 | head -n 1)
version_body=$($curl --silent --location "$latest_version" | "$grep" --only-matching '(?<="body":\s")[^,]+.' | cut -d '\r\n' -f 1 | head -n 1)
fi
echo "Version_body: $version_body"
[[ -z "$version_body" ]] && {
Expand Down

0 comments on commit 4017016

Please sign in to comment.