Skip to content

Commit

Permalink
chore: lock release version to 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Mar 15, 2024
1 parent 84ee83c commit 7ad261c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/strauss-installar.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/bin/bash

# Function to get the latest release version from GitHub API
get_latest_release() {
curl --silent "https://api.github.com/repos/BrianHenryIE/strauss/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
}

# Function to check if the .phar file or .txt file does not exist, or if the latest release version is not installed
is_update_needed() {
local latest_release=$1
Expand All @@ -21,7 +16,7 @@ download_and_install() {
# Main script execution
main() {
local latest_release
latest_release=$(get_latest_release)
latest_release="0.16.0" # strauss release version
if is_update_needed "$latest_release"; then
download_and_install "$latest_release"
fi
Expand Down

0 comments on commit 7ad261c

Please sign in to comment.