bz2 support

as tbz.
This commit is contained in:
Søren Theilgaard
2022-08-19 14:13:31 +02:00
parent de55a96e9c
commit cd441c88d9

View File

@@ -75,7 +75,7 @@ printlog "Label type: $type" INFO
# MARK: extract info from data # MARK: extract info from data
if [ -z "$archiveName" ]; then if [ -z "$archiveName" ]; then
case $type in case $type in
dmg|pkg|zip|tbz) dmg|pkg|zip|tbz|bz2)
archiveName="${name}.$type" archiveName="${name}.$type"
;; ;;
pkgInDmg) pkgInDmg)
@@ -101,7 +101,7 @@ fi
if [ -z "$targetDir" ]; then if [ -z "$targetDir" ]; then
case $type in case $type in
dmg|zip|tbz|app*) dmg|zip|tbz|bz2|app*)
targetDir="/Applications" targetDir="/Applications"
;; ;;
pkg*) pkg*)
@@ -282,7 +282,7 @@ case $type in
zip) zip)
installFromZIP installFromZIP
;; ;;
tbz) tbz|bz2)
installFromTBZ installFromTBZ
;; ;;
pkgInDmg) pkgInDmg)