lib.sh: Fix cleanup()

Would always exit with return code 0
pull/57/merge
Jesus Alvarez 9 years ago
parent 2e3c93c8d2
commit 16f8559529
  1. 3
      lib.sh

@ -70,8 +70,7 @@ run_cmd() {
}
cleanup() {
# [[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
[[ $1 ]] && exit $1
exit $1 || true
}
abort() {

Loading…
Cancel
Save