From fa854f64904042139b8a3d411676fe3f0732571a Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 14 Jan 2025 20:06:27 +0100 Subject: [PATCH] fix add_applications --- abra.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index 7233976..e61cd95 100644 --- a/abra.sh +++ b/abra.sh @@ -159,11 +159,13 @@ print(f'{blueprint.name} enabled: {blueprint.enabled}') } add_applications(){ +export APPLICATIONS /manage.py shell -c """ import json -if '$APPLICATIONS' == '': +import os +if os.environ['APPLICATIONS'] == '': exit() -applications = json.loads('$APPLICATIONS') +applications = json.loads(os.environ['APPLICATIONS']) for name, url in applications.items(): print(f'Add {name}: {url}') app = Application.objects.filter(name=name).first()