Use "exit" instead of "return" when outside of functions

This commit is contained in:
Pierre Pronchery 2019-09-14 03:39:39 +02:00
parent a2be547182
commit 90438422ed

View File

@ -180,7 +180,7 @@ while [ $# -gt 0 ]; do
;; ;;
*) *)
_error "$target: Unknown type" _error "$target: Unknown type"
return 2 exit 2
;; ;;
esac esac
exit $? exit $?