mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-04 15:29:52 +03:00
Revert "version.py: Fix CI failure on macOS by avoiding inline if statement"
This reverts commit 63b841efc0
.
This commit is contained in:
parent
2969237e04
commit
cabcba1ef9
@ -5,10 +5,7 @@ def main():
|
|||||||
parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version')
|
parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.newline:
|
end = None if args.newline else ''
|
||||||
end = None
|
|
||||||
else:
|
|
||||||
end = ''
|
|
||||||
|
|
||||||
version = None
|
version = None
|
||||||
with open('CMakeLists.txt', 'r') as file:
|
with open('CMakeLists.txt', 'r') as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user