mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
9 lines
187 B
Plaintext
9 lines
187 B
Plaintext
|
#!/usr/bin/env zsh
|
||
|
|
||
|
# Create a tarball from given directory.
|
||
|
|
||
|
archive_name="$1.tar.gz"
|
||
|
archive_name=${archive_name/\//}
|
||
|
tar cvfz "$archive_name" "$1"
|
||
|
echo "Created archive $archive_name"
|