mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
Rewrite create-archive
This commit is contained in:
parent
293b5aad12
commit
ef32c081d8
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Create a tarball from given directory.
|
# Create a tarball from given directory.
|
||||||
|
|
||||||
archive_name="$1.tar.gz"
|
dir_name="$1"
|
||||||
archive_name=${archive_name/\//}
|
archive_name="${dir_name}-$(date '+%Y%m%d').tar.gz"
|
||||||
tar cvfz "$archive_name" "$1"
|
tar cvfz "$archive_name" "$1" && \
|
||||||
echo "Created archive $archive_name"
|
echo "Created archive $archive_name"
|
||||||
|
Loading…
Reference in New Issue
Block a user