mirror of
				https://github.com/willfarrell/docker-crontab.git
				synced 2025-10-30 21:27:18 +01:00 
			
		
		
		
	chore: adding error handling.
This commit is contained in:
		| @@ -7,6 +7,11 @@ CRONTAB_FILE=/etc/crontabs/docker | |||||||
| # For local testing only. | # For local testing only. | ||||||
| #HOME_DIR=. | #HOME_DIR=. | ||||||
|  |  | ||||||
|  | if [ -z "${HOME_DIR}" ]; then | ||||||
|  |     echo "HOME_DIR not set." | ||||||
|  |     exit 1 | ||||||
|  | fi | ||||||
|  |  | ||||||
| # Ensure dir exist - in case of volume mapping. | # Ensure dir exist - in case of volume mapping. | ||||||
| mkdir -p "${HOME_DIR}"/jobs "${HOME_DIR}"/projects | mkdir -p "${HOME_DIR}"/jobs "${HOME_DIR}"/projects | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user