functions: add some output

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-29 19:49:57 +02:00
parent e34e609fcb
commit 5f7a1c266e

View File

@ -389,15 +389,18 @@ function extractDSMFiles() {
PAT_PATH="${1}"
EXT_PATH="${2}"
header=$(od -bcN2 ${1} | head -1 | awk '{print $3}')
header="$(od -bcN2 "${PAT_PATH}" | head -1 | awk '{print $3}')"
case ${header} in
105)
echo -e "Uncompressed tar"
isencrypted="no"
;;
213)
echo -e "Compressed tar"
isencrypted="no"
;;
255)
echo -e "Encrypted tar"
isencrypted="yes"
;;
*)