bin/create-archive

9 lines
187 B
Plaintext
Raw Normal View History

2023-07-20 06:21:29 +02:00
#!/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"