Skip to content

Commit

Permalink
zip extract error solved
Browse files Browse the repository at this point in the history
now bot can extract the zip files
  • Loading branch information
cybernobie authored May 18, 2021
1 parent 05063b7 commit bc07e19
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 bc07e19

Please sign in to comment.