Skip to content

Commit

Permalink
Fix auto update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Josue-T committed Jan 10, 2025
1 parent f69c282 commit f794bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_update/auto_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EOL
check_app_version() {
local docker_request_res="$(curl -s 'https://hub.docker.com/v2/repositories/seafileltd/seafile-mc/tags' -H 'Content-Type: application/json' |
jq -r '.results[]')"
local app_remote_version=$(echo "$docker_request_res" | jq -r '.name' | sort -V | grep -E -v 'latest|.*-arm$' | tail -n1)
local app_remote_version=$(echo "$docker_request_res" | jq -r '.name' | sort -V | grep -P '^\d+\.\d+\.\d+$' | tail -n1)

## Check if new build is needed
if [[ "$app_version" != "$app_remote_version" ]]
Expand Down

0 comments on commit f794bc2

Please sign in to comment.