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