mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-19 12:49:48 +02:00
fix: SC2162 shellcheck fixes.
This commit is contained in:
parent
4d945526fe
commit
96e699c4d7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user