Added explanation to archive.7z

This commit is contained in:
PedoDeveloper 2024-11-09 07:04:40 +00:00
parent 9515d2c952
commit bb075ed369

View file

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
# This script packs a file or directory into a 7z archive with the given password.
# It can (optionally) split the archives into volumes of a fixed size in megabytes.
archive_dir="$(dirname "$0")/../archives" archive_dir="$(dirname "$0")/../archives"
@ -47,7 +49,6 @@ set_volumes() {
generate_name() { generate_name() {
archive="$archive_dir/$(base64 /dev/urandom | tr -dc [:alnum:] | head -c 20).7z" archive="$archive_dir/$(base64 /dev/urandom | tr -dc [:alnum:] | head -c 20).7z"
echo "Generated archive name $archive" >&2 echo "Generated archive name $archive" >&2
} }