]> git.decadent.org.uk Git - dak.git/commitdiff
Use ${file%.gz} instead of calling basename.
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 27 Jul 2015 08:01:40 +0000 (10:01 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 27 Jul 2015 08:01:40 +0000 (10:01 +0200)
config/debian-security/cron.daily

index f2eff107b10e1ce9c29622a971e253e1d146ddce..8b05a3016669b7a4bcb97076a5442df1185da0a1 100755 (executable)
@@ -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