CLOUDSTACK-7654 fixed issues with zip format templates.

(cherry picked from commit 67ff7dac82)
This commit is contained in:
Rajesh Battala 2014-10-07 12:38:43 +05:30 committed by David Nalley
parent 0df43197d9
commit 42fd2d91da
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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