From: Ansgar Burchardt Date: Mon, 27 Jul 2015 08:01:40 +0000 (+0200) Subject: Use ${file%.gz} instead of calling basename. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e3afeb722a6057e96d646155bfdea066bf2a21bf;p=dak.git Use ${file%.gz} instead of calling basename. --- diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index f2eff107..8b05a301 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -17,7 +17,7 @@ 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