From 08c1e041bcea964c18421544f5f9768d1d2da168 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Wed, 27 Apr 2022 13:17:12 -0400 Subject: [PATCH] s/return/exit/ at top-level of shell script --- tools/install_opte.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install_opte.sh b/tools/install_opte.sh index 9852d0303dc..85f34674951 100755 --- a/tools/install_opte.sh +++ b/tools/install_opte.sh @@ -88,9 +88,9 @@ pkg set-publisher -p "$XDE_REPO_PATH" --search-first RC=0 pkg update || RC=$?; if [[ "$RC" -eq 0 ]] || [[ "$RC" -eq 4 ]]; then - return 0 + exit 0 else - return "$RC" + exit "$RC" fi # Actually install the xde kernel module and opteadm tool