Skip to content

Commit

Permalink
Fixed a bug in selfUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuwei Ye authored and Shuwei Ye committed Oct 24, 2023
1 parent 90b4359 commit 84716b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-atlas_container.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# coding: utf-8
# version=2023-10-24-alpha01
# version=2023-10-24-alpha02
# author: Shuwei Ye <[email protected]>
"true" '''\'
myScript="${BASH_SOURCE:-$0}"
Expand Down Expand Up @@ -147,7 +147,7 @@ def selfUpdate(args):
resource = urlopen(URL_MYSELF)
content = resource.read().decode('utf-8')
latestVersion = getVersion(content)
latestVersion = getVersion(content.split('\n'))
if latestVersion is not None:
if currentVersion is None or latestVersion > currentVersion:
myScript = os.path.abspath(sys.argv[0])
Expand Down

0 comments on commit 84716b4

Please sign in to comment.