Return the status of the last command

This commit is contained in:
Ben Peddell 2015-12-02 20:12:01 +10:00
parent aefe19d482
commit d09ac2b8d7

View File

@ -1410,8 +1410,11 @@ while true; do
exit 1 exit 1
;; ;;
esac esac
status=$?
shift shift
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
break break
fi fi
done done
exit $status