From 3b7ed41825043e574ff44481e7d28777442eb9d7 Mon Sep 17 00:00:00 2001 From: abbing Date: Mon, 14 Oct 2024 17:41:23 +0200 Subject: [PATCH] 0.0.6 [WIP] some fixes --- docker-cli.sh | 2 +- docker/scripts/unsetEmptyVars.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-cli.sh b/docker-cli.sh index f104f85..cc13089 100644 --- a/docker-cli.sh +++ b/docker-cli.sh @@ -49,7 +49,7 @@ elif [ "$2" == "up" ]; then fi if [ "$1" == "frontend" ] || [ "$1" == "backend" ] || [ "$1" == "db" ]; then printenv - ./docker/scripts/unsetEmptyVars.sh ./.env + source ./docker/scripts/unsetEmptyVars.sh ./.env printenv docker compose -f docker/composeFiles/app.docker-compose.yml --env-file ./.env config docker compose -f docker/composeFiles/app.docker-compose.yml --env-file ./.env "$2" "$1" -d --force-recreate diff --git a/docker/scripts/unsetEmptyVars.sh b/docker/scripts/unsetEmptyVars.sh index f937acb..c9d11a9 100644 --- a/docker/scripts/unsetEmptyVars.sh +++ b/docker/scripts/unsetEmptyVars.sh @@ -19,7 +19,7 @@ while IFS= read -r line; do if [[ "$line" =~ ^[A-Z_]+=[^\"]+ ]]; then VAR_NAME=$(echo "$line" | cut -d'=' -f1) if [ "${!VAR_NAME}" == "" ]; then - eval "unset $VAR_NAME" + unset $VAR_NAME echo "Unset $VAR_NAME" fi fi