Skip to content

Commit

Permalink
Change error return code to 1 (#170)
Browse files Browse the repository at this point in the history
Ref: https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

Signed-off-by: Rafael Sene  <rpsene@br.ibm.com>
Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
  • Loading branch information
bpradipt authored Jun 25, 2021
1 parent 717da58 commit c06c6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openshift-install-powervs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function highlight {
function error {
echo -e "${RED}[${FUNCNAME[1]}]${NRM} ${RED}ERROR${NRM}: $1"
ret_code=$2
[[ "$ret_code" == "" ]] && ret_code=-1
[[ "$ret_code" == "" ]] && ret_code=1
IFS=$OLD_IFS
exit $ret_code
}
Expand Down

0 comments on commit c06c6d7

Please sign in to comment.