Skip to content

Commit

Permalink
Merge pull request MaxxRider#13 from cybernobie/patch-1
Browse files Browse the repository at this point in the history
zip extract error solved
  • Loading branch information
MaxxRider authored May 19, 2021
2 parents 05063b7 + bc07e19 commit 636c2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extract() {
;;
*.zip)
a_dir=$(expr "$arg" : '\(.*\).zip')
7z x "$arg" -o"$a_dir"
unzip "$arg" -d "$a_dir"
local code=$?
;;
*.7z)
Expand All @@ -67,4 +67,4 @@ extract() {
exit $code
}

extract "$1"
extract "$1"

0 comments on commit 636c2a7

Please sign in to comment.