From efc9fbf80347183ec2f57a13e6d1d92ad8601632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Tue, 1 Mar 2022 18:47:44 +0100 Subject: [PATCH] format --- libexec/kiwi-cron/run_cron | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libexec/kiwi-cron/run_cron b/libexec/kiwi-cron/run_cron index 8bfe7eb..826eb93 100755 --- a/libexec/kiwi-cron/run_cron +++ b/libexec/kiwi-cron/run_cron @@ -1,5 +1,8 @@ #!/bin/sh +# commands +crond_exe="$(command -v crond)" + # set timezone export TZ="${TZ:-Etc/UTC}" ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" @@ -22,7 +25,6 @@ shift "$(( OPTIND - 1 ))" # CLI arguments rc_executable="${1}" - if [ -n "${rc_dry_run}" ]; then # verbose, dry run set -x @@ -39,6 +41,6 @@ fi | crontab - # hand over to crond -exec crond -fd 8 +exec "${crond_exe}" -fd 8 exit 0 \ No newline at end of file