Skip to content

Commit

Permalink
extract: unzip in subshell
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jun 21, 2024
1 parent f380aac commit df80274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dipm
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ extract_pkg() {
application/x-bzip2) tar -xvf "$file" -C "$download_dir" >/dev/null ;;
application/x-xz) tar -xvf "$file" -C "$download_dir" >/dev/null ;;
application/zstd) tar -xvf "$file" -C "$download_dir" >/dev/null ;;
application/octet-stream) {
application/octet-stream) (
cd "$download_dir" || return 1
unzip "$file" >/dev/null
} ;;
application/zip) {
) ;;
application/zip) (
cd "$download_dir" || return 1
unzip "$file" >/dev/null
} ;;
) ;;
*) ;;
esac
}
Expand Down

0 comments on commit df80274

Please sign in to comment.