meta:archive: Change date format in filename
This commit is contained in:
@@ -9,7 +9,7 @@ done
|
|||||||
if rmdir "$tmpd" 2>/dev/null; then
|
if rmdir "$tmpd" 2>/dev/null; then
|
||||||
echo "Nothing to archive"
|
echo "Nothing to archive"
|
||||||
else
|
else
|
||||||
name="existing-$(date +"%s").tar.gz"
|
name="existing-$(date +"%Y%m%d_%H%M%S").tar.gz"
|
||||||
if tar czvf "$name" "$tmpd"; then
|
if tar czvf "$name" "$tmpd"; then
|
||||||
rm -rf "$tmpd"
|
rm -rf "$tmpd"
|
||||||
echo "$name created"
|
echo "$name created"
|
||||||
|
|||||||
Reference in New Issue
Block a user