Skip to content

Commit

Permalink
0.0.6 [WIP] some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LReg committed Oct 14, 2024
1 parent 609b6f0 commit 3b7ed41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/unsetEmptyVars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b7ed41

Please sign in to comment.