2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 02:28:57 +00:00

fix: pass single string as arg (#1040)

fixes #1037
This commit is contained in:
Revant Nandgaonkar 2023-01-16 10:07:00 +05:30 committed by GitHub
parent 6e2e4d2143
commit 44d6f237d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import os
import re import re
def get_versions(): def get_erpnext_version():
erpnext_version = os.getenv("ERPNEXT_VERSION") erpnext_version = os.getenv("ERPNEXT_VERSION")
assert erpnext_version, "No ERPNext version set" assert erpnext_version, "No ERPNext version set"
return erpnext_version return erpnext_version
@ -20,7 +20,7 @@ def update_env(erpnext_version: str):
def main() -> int: def main() -> int:
update_env(*get_versions()) update_env(get_erpnext_version())
return 0 return 0