fix(appctl): do not overwrite non-empty env vars with empty strings from app.yaml

This commit is contained in:
kiskaadee committed 2026-09-10 17:06:49 -05:00
1 parent 2470d43693
commit c7a50cc7e9
1 file changed
+2 -1
+2 -1
View File
@@ -77,7 +77,8 @@ import json, sys
d = json.loads(sys.argv[1]) d = json.loads(sys.argv[1])
env_dict = d.get('env', {}) env_dict = d.get('env', {})
for k, v in env_dict.items(): for k, v in env_dict.items():
print(f'export {k}=\"{v}\"') if v != '' and v is not None:
print(f'export {k}=\"{v}\"')
" "$resolved_json")" " "$resolved_json")"
# 4. Source local .env if present # 4. Source local .env if present