Use "exit" instead of "return" when outside of functions
This commit is contained in:
parent
a2be547182
commit
90438422ed
|
@ -180,7 +180,7 @@ while [ $# -gt 0 ]; do
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_error "$target: Unknown type"
|
_error "$target: Unknown type"
|
||||||
return 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user