X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.daily;h=9417a8569e8495a778582637e5cc20e8cf0bc9e9;hb=773f4286615587294d6e6acfb850df53a661bbc5;hp=984c8b757a82cf73090bac387fca083e6138fb9a;hpb=48edb385aaaf84887a14a5e2c6f936b021ac4a08;p=dak.git diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index 984c8b75..9417a856 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -17,15 +17,15 @@ rsync --delete -r --include=override\* --exclude=\* --password-file /srv/securit cd $overridedir for file in override*.gz; do - zcat $file > $(basename $file .gz) + zcat -- "$file" > "${file%.gz}" done -find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm +find . -maxdepth 1 -mindepth 1 -type l -delete -for suite in stable testing; do +for suite in oldstable stable testing; do case $suite in - oldstable) override_suite=squeeze;; - stable) override_suite=wheezy;; - testing) override_suite=jessie;; + oldstable) override_suite=wheezy ;; + stable) override_suite=jessie ;; + testing) override_suite=stretch ;; *) echo "Unknown suite type ($suite)"; exit 1;; esac for component in $components; do