]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian-security/cron.daily
Use ${file%.gz} instead of calling basename.
[dak.git] / 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