move some things around for improved readability
This commit is contained in:
parent
42bf72e127
commit
34529d3372
1 changed files with 3 additions and 4 deletions
|
|
@ -83,20 +83,19 @@ main() {
|
|||
local password="${2:-}"
|
||||
local size="${3:-}"
|
||||
local volumes archive_name archive_dir
|
||||
archive_dir="$(dirname "$0")/../archives"
|
||||
|
||||
check_dependencies "7z"
|
||||
check_input "$input_file" "$password" "$size"
|
||||
|
||||
archive_name="$(generate_name)"
|
||||
archive_dir="$(dirname "$0")/../archives"
|
||||
mkdir -p "$archive_dir"
|
||||
|
||||
volumes="$(get_volumes "$input_file" "$size")"
|
||||
archive_name="$(generate_name)"
|
||||
|
||||
trap 'cleanup "$archive_name"' ERR INT
|
||||
|
||||
log "INFO" "Packing '${input_file}' into archive '$archive_name' with password '${password}'"
|
||||
|
||||
trap 'cleanup "$archive_name"' ERR INT
|
||||
create_archive \
|
||||
"$input_file" \
|
||||
"$password" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue