Skip to content

Commit

Permalink
and for Unix too
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Laws committed Jan 27, 2025
1 parent b79e5a0 commit 31c0fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Flyway_DownloadAndInstallCLI_Unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ get_installed_version() {
# Function to get the latest version from the website
get_latest_version_from_website() {
# Fetch the webpage content
content=$(curl -s https://documentation.red-gate.com/fd/command-line-277579359.html)
content=$(curl -s https://documentation.red-gate.com/flyway/reference/usage/command-line.html)

# Extract version number using regex
latest_version=$(echo "$content" | grep -oP 'flyway-commandline-\K\d+\.\d+\.\d+(?=-windows-x64.zip)' | head -n 1)
Expand Down

0 comments on commit 31c0fd2

Please sign in to comment.