mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7654 fixed issues with zip format templates.
(cherry picked from commit 67ff7dac82)
This commit is contained in:
parent
0df43197d9
commit
42fd2d91da
|
|
@ -74,7 +74,7 @@ uncompress() {
|
|||
;;
|
||||
bzip2) bunzip2 -c $1 > $tmpfile
|
||||
;;
|
||||
ZIP) unzip -p $1 | cat > $tmpfile
|
||||
[zZ][iI][pP]) unzip -p $1 | cat > $tmpfile
|
||||
;;
|
||||
*) printf "$1"
|
||||
return 0
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ uncompress() {
|
|||
;;
|
||||
bzip2) bunzip2 -c $1 > $tmpfile
|
||||
;;
|
||||
ZIP) unzip -p $1 | cat > $tmpfile
|
||||
[zZ][iI][pP]) unzip -p $1 | cat > $tmpfile
|
||||
;;
|
||||
*) printf "$1"
|
||||
return 0
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ is_compressed() {
|
|||
;;
|
||||
bzip2) ctype="bz2"
|
||||
;;
|
||||
ZIP) ctype="zip"
|
||||
[zZ][iI][pP]) ctype="zip"
|
||||
;;
|
||||
*) echo "File $1 does not appear to be compressed" >&2
|
||||
return 1
|
||||
|
|
@ -92,7 +92,7 @@ uncompress() {
|
|||
;;
|
||||
bzip2) bunzip2 -q -c $1 > $tmpfile
|
||||
;;
|
||||
ZIP) unzip -q -p $1 | cat > $tmpfile
|
||||
[zZ][iI][pP]) unzip -q -p $1 | cat > $tmpfile
|
||||
;;
|
||||
*) printf "$1"
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue