meta:archive: Change date format in filename

This commit is contained in:
2020-11-09 13:47:26 +01:00
parent a1b988838c
commit 301b109f0d

View File

@@ -9,7 +9,7 @@ done
if rmdir "$tmpd" 2>/dev/null; then
echo "Nothing to archive"
else
name="existing-$(date +"%s").tar.gz"
name="existing-$(date +"%Y%m%d_%H%M%S").tar.gz"
if tar czvf "$name" "$tmpd"; then
rm -rf "$tmpd"
echo "$name created"