Skip to content

Commit

Permalink
Use {} for env vars in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Feb 22, 2024
1 parent fcd2daf commit 06dbd55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
set -eu

if [ -z "$(find "$ROOT_PATH_FOR_DYNACONF" -type f -mindepth 1 -maxdepth 1)" ]; then
echo "Copying default settings.yml to $ROOT_PATH_FOR_DYNACONF"
cp -au gentoogram/resources/config/settings.yml "$ROOT_PATH_FOR_DYNACONF"
if [ -z "$(find "${ROOT_PATH_FOR_DYNACONF}" -type f -mindepth 1 -maxdepth 1)" ]; then
echo "Copying default settings.yml to ${ROOT_PATH_FOR_DYNACONF}"
cp -au "gentoogram/resources/config/settings.yml" "${ROOT_PATH_FOR_DYNACONF}"
fi

exec python -m gentoogram

0 comments on commit 06dbd55

Please sign in to comment.