CLOUDSTACK-7654 fixed issues with zip format templates.

This commit is contained in:
Rajesh Battala 2014-10-07 12:38:43 +05:30
parent 45597766a5
commit 67ff7dac82
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