Skip to content

Commit

Permalink
Merge pull request Cloudef#3 from urjaman/continue-fix
Browse files Browse the repository at this point in the history
fix "continue" in the extract function to returns
  • Loading branch information
Cloudef authored Aug 2, 2017
2 parents f1daeb8 + 994dde7 commit c9d679e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/makepnd.in
Original file line number Diff line number Diff line change
Expand Up @@ -399,24 +399,24 @@ extract_file() {
*application/x-gzip*)
case "$ext" in
gz|z|Z) cmd="gzip" ;;
*) continue;;
*) return;;
esac ;;
*application/x-bzip*)
case "$ext" in
bz2|bz) cmd="bzip2" ;;
*) continue;;
*) return;;
esac ;;
*application/x-xz*)
case "$ext" in
xz) cmd="xz" ;;
*) continue;;
*) return;;
esac ;;
*)
# See if bsdtar can recognize the file
if bsdtar -tf "$file" -q '*' &>/dev/null; then
cmd="bsdtar"
else
continue
return
fi ;;
esac

Expand Down

0 comments on commit c9d679e

Please sign in to comment.