mirror of
				https://github.com/willfarrell/docker-crontab.git
				synced 2025-10-31 05:37:28 +01:00 
			
		
		
		
	fix: SC2162 shellcheck fixes.
This commit is contained in:
		| @@ -184,7 +184,7 @@ function build_crontab() { | |||||||
|     rm -rf ${CRONTAB_FILE} |     rm -rf ${CRONTAB_FILE} | ||||||
|  |  | ||||||
|     ONSTART=() |     ONSTART=() | ||||||
|     while read i ; do |     while read -r i ; do | ||||||
|  |  | ||||||
|         SCHEDULE=$(jq -r .["$i"].schedule "${CONFIG}" | sed 's/\*/\\*/g') |         SCHEDULE=$(jq -r .["$i"].schedule "${CONFIG}" | sed 's/\*/\\*/g') | ||||||
|         if [ "${SCHEDULE}" == "null" ]; then |         if [ "${SCHEDULE}" == "null" ]; then | ||||||
| @@ -228,7 +228,7 @@ EOF | |||||||
|  |  | ||||||
|  |  | ||||||
|         if [ "$(jq -r .["$i"].trigger "${CONFIG}")" != "null" ]; then |         if [ "$(jq -r .["$i"].trigger "${CONFIG}")" != "null" ]; then | ||||||
|             while read j ; do |             while read -r j ; do | ||||||
|                 if [ "$(jq .["$i"].trigger["$j"].command "${CONFIG}")" == "null" ]; then |                 if [ "$(jq .["$i"].trigger["$j"].command "${CONFIG}")" == "null" ]; then | ||||||
|                     echo "Command Missing: $(jq -r .["$i"].trigger["$j"].command "${CONFIG}")" |                     echo "Command Missing: $(jq -r .["$i"].trigger["$j"].command "${CONFIG}")" | ||||||
|                     continue |                     continue | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user