X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=crontab.d%2Fupdate.sh;h=173142ec214db7ddb29eed6ec690704ced1a97ed;hb=7e93fbaa00098f7310a503872ba8f194b667412d;hp=05519bb4a14b0b901bc58f585954673e670de73a;hpb=a9e86502129b92ddb62f6034aaa1a4bc10c4214b;p=config%2Fdotfiles.git diff --git a/crontab.d/update.sh b/crontab.d/update.sh index 05519bb..173142e 100755 --- a/crontab.d/update.sh +++ b/crontab.d/update.sh @@ -52,9 +52,8 @@ echo "###################################" >> "$CRONTAB" echo >> "$CRONTAB" echo "# It was generated from '$DIRECTORY/*' on `date -R`." >> "$CRONTAB" -# Enforce C sort order ($LANGUAGE is a GNU extension). +# Enforce C sort order. LC_ALL=C -LANGUAGE=C NO_MATCHES= for file in "$DIRECTORY"/crontab.*; do @@ -79,6 +78,7 @@ for file in "$DIRECTORY"/crontab.*; do -e "/^# Copyright (C) [0-9][0-9]* / d" \ | cat --squeeze-blank \ | sed "/^PATH/ s:\$HOME:$HOME:g" \ + | sed 's/RAND_SLEEP \([0-9]*\)/sleep `perl -e "srand; print int rand \1;"`/' \ >> "$CRONTAB" done