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
;;
esac
status=$?
shift
if [ $# -eq 0 ]; then
break
fi
done
exit $status