142 | | log "Extracting \"$file\"" |
143 | | cd $(dirname "$file") |
144 | | file=$(basename "$file") |
145 | | # if extraction_subdir is not empty, extract to subdirectory |
146 | | if [[ ! -z "$extraction_subdir" ]] ; then |
147 | | mkdir "$extraction_subdir" |
148 | | cd "$extraction_subdir" |
149 | | file="../$file" |
150 | | fi |
151 | | ${commands[$format]} "$file" |
| 142 | log "Extracting \"$file\"" |
| 143 | cd $(dirname "$file") |
| 144 | file=$(basename "$file") |
| 145 | # if extraction_subdir is not empty, extract to subdirectory |
| 146 | if [[ ! -z "$extraction_subdir" ]] ; then |
| 147 | mkdir "$extraction_subdir" |
| 148 | cd "$extraction_subdir" |
| 149 | file="../$file" |
| 150 | fi |
| 151 | ${commands[$format]} "$file" |