multi-file fix

This commit is contained in:
Luxferre
2026-05-26 22:23:22 +03:00
parent 4dcd284ccd
commit 6c82f241cd
+1 -1
View File
@@ -12,7 +12,7 @@ if [[ "$1" = "e" ]]; then
PARFILE="$(mktemp -t 'YS-XXXXXXXX')" PARFILE="$(mktemp -t 'YS-XXXXXXXX')"
[[ -z "$YS_PASS" ]] && read -rs -p 'Encryption password: ' YS_PASS [[ -z "$YS_PASS" ]] && read -rs -p 'Encryption password: ' YS_PASS
echo "Processing..." echo "Processing..."
tar --use-compress-program='zstd -T0 -10' -cf - -- $* | \ tar --use-compress-program='zstd -T0 -10' -cf - -- "$@" | \
openssl aes-256-cbc -e -pbkdf2 -pass "pass:$YS_PASS" | \ openssl aes-256-cbc -e -pbkdf2 -pass "pass:$YS_PASS" | \
xpar -Je -i 3 -H blake2b > "$PARFILE" xpar -Je -i 3 -H blake2b > "$PARFILE"
truncate -s $(( ( $(wc -c < "$PARFILE") + 7199 ) / 7200 * 7200 )) "$PARFILE" truncate -s $(( ( $(wc -c < "$PARFILE") + 7199 ) / 7200 * 7200 )) "$PARFILE"