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()