Browse Source

fix: [cron] prevent error to be stored in cache

master
Valentin Lab 7 months ago
parent
commit
713bea982f
  1. 4
      cron/lib/common

4
cron/lib/common

@ -71,7 +71,9 @@ cron:get_config() {
fi fi
cron:get_config "$value" || return 1 cron:get_config "$value" || return 1
;; ;;
esac > "$cache_file"
esac > "$cache_file.tmp"
mv -v "$cache_file.tmp" "$cache_file" >&2
## if cache file is empty, this is an error ## if cache file is empty, this is an error
if [ ! -s "$cache_file" ]; then if [ ! -s "$cache_file" ]; then

Loading…
Cancel
Save