File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments