mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 18:19:53 +03:00
Merge PR #1271: version.py: Fix CI failure on macOS by avoiding inline if statement
This commit is contained in:
commit
1fa6c14e4e
@ -5,7 +5,10 @@ def main():
|
||||
parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version')
|
||||
args = parser.parse_args()
|
||||
|
||||
end = None if args.newline else ''
|
||||
if args.newline:
|
||||
end = None
|
||||
else:
|
||||
end = ''
|
||||
|
||||
version = None
|
||||
with open('CMakeLists.txt', 'r') as file:
|
||||
|
Loading…
Reference in New Issue
Block a user