diff --git a/.ci/azure-pipelines/macos_build.sh b/.ci/azure-pipelines/macos_build.sh index 5befaebc..a7418e74 100755 --- a/.ci/azure-pipelines/macos_build.sh +++ b/.ci/azure-pipelines/macos_build.sh @@ -1,7 +1,7 @@ #!/bin/bash if [[ "${#SE_BUILD_NUMBER_TOKEN}" -eq 64 ]]; then - VERSION=$(python "version.py") + VERSION=$(python3 "version.py") BUILD_NUMBER=$(curl "https://softether.network/get-build-number?commit=${BUILD_SOURCEVERSION}&version=${VERSION}&token=${SE_BUILD_NUMBER_TOKEN}") else BUILD_NUMBER=0 diff --git a/version.py b/version.py index 4d02c2cf..6ccacd27 100644 --- a/version.py +++ b/version.py @@ -5,10 +5,7 @@ def main(): parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version') args = parser.parse_args() - if args.newline: - end = None - else: - end = '' + end = None if args.newline else '' version = None with open('CMakeLists.txt', 'r') as file: