Skip to content

Commit 67ff7da

Browse files
CLOUDSTACK-7654 fixed issues with zip format templates.
1 parent 4559776 commit 67ff7da

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/installer/createtmplt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ uncompress() {
7474
;;
7575
bzip2) bunzip2 -c $1 > $tmpfile
7676
;;
77-
ZIP) unzip -p $1 | cat > $tmpfile
77+
[zZ][iI][pP]) unzip -p $1 | cat > $tmpfile
7878
;;
7979
*) printf "$1"
8080
return 0

scripts/storage/qcow2/createtmplt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ uncompress() {
7474
;;
7575
bzip2) bunzip2 -c $1 > $tmpfile
7676
;;
77-
ZIP) unzip -p $1 | cat > $tmpfile
77+
[zZ][iI][pP]) unzip -p $1 | cat > $tmpfile
7878
;;
7979
*) printf "$1"
8080
return 0

scripts/storage/secondary/createtmplt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ is_compressed() {
7373
;;
7474
bzip2) ctype="bz2"
7575
;;
76-
ZIP) ctype="zip"
76+
[zZ][iI][pP]) ctype="zip"
7777
;;
7878
*) echo "File $1 does not appear to be compressed" >&2
7979
return 1
@@ -92,7 +92,7 @@ uncompress() {
9292
;;
9393
bzip2) bunzip2 -q -c $1 > $tmpfile
9494
;;
95-
ZIP) unzip -q -p $1 | cat > $tmpfile
95+
[zZ][iI][pP]) unzip -q -p $1 | cat > $tmpfile
9696
;;
9797
*) printf "$1"
9898
return 0

0 commit comments

Comments
 (0)