From e3afeb722a6057e96d646155bfdea066bf2a21bf Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 27 Jul 2015 10:01:40 +0200 Subject: [PATCH] Use ${file%.gz} instead of calling basename. --- config/debian-security/cron.daily | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2