[dak/master] 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 f2eff10..8b05a30 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.1.4
Reply to: