mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-19 12:49:48 +02:00
chore: rename function to better describe what it does.
This commit is contained in:
parent
dc18a5199d
commit
c685687367
@ -22,7 +22,7 @@ if [ "${LOG_FILE}" == "" ]; then
|
||||
touch ${LOG_FILE}
|
||||
fi
|
||||
|
||||
get_config() {
|
||||
normalize_config() {
|
||||
JSON_CONFIG={}
|
||||
if [ -f "${HOME_DIR}/config.json" ]; then
|
||||
JSON_CONFIG="$(cat "${HOME_DIR}"/config.json)"
|
||||
@ -245,7 +245,7 @@ EOF
|
||||
}
|
||||
|
||||
start_app() {
|
||||
get_config
|
||||
normalize_config
|
||||
export CONFIG=${HOME_DIR}/config.working.json
|
||||
if [ ! -f "${CONFIG}" ]; then
|
||||
echo "Unable to find ${CONFIG}."
|
||||
|
Loading…
x
Reference in New Issue
Block a user