Skip to content

Commit

Permalink
Fixed a bug in selfUpdate for the script run-atlas_container.sh-docke…
Browse files Browse the repository at this point in the history
…rhub
  • Loading branch information
Shuwei Ye authored and Shuwei Ye committed Apr 10, 2024
1 parent c050364 commit 3ca9e19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run-atlas_container.sh-dockerhub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# coding: utf-8
# version=2024-04-09-r01
# version=2024-04-09-r02
# author: Shuwei Ye <[email protected]>
"true" '''\'
myScript="${BASH_SOURCE:-$0}"
Expand Down Expand Up @@ -243,6 +243,7 @@ def selfUpdate(args):
myDate, recentCommit = getLastCommit()
print("The most recent GitHub commit's UTC timestamp is", recentCommit)
content = getUrlContent(URL_SELF)
latestVersion = getVersion(getUrlContent(URL_SELF))
if latestVersion > currentVersion or (
latestVersion == currentVersion and recentCommit > myDate):
Expand Down

0 comments on commit 3ca9e19

Please sign in to comment.