diff --git a/modules/archive.sh b/modules/archive.sh index 7c3196b..6b03678 100755 --- a/modules/archive.sh +++ b/modules/archive.sh @@ -1,11 +1,11 @@ #!/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. + source functions.sh set -euo pipefail - cleanup() { local archive_name="$1" rm -f "${archive_name}"*