From 19fb67127945b2fee91cd0ed034f85c76e02a2d4 Mon Sep 17 00:00:00 2001 From: Fabian Herschel Date: Thu, 11 Apr 2024 11:25:44 +0200 Subject: [PATCH] ra/SAPCMControlZone: solving shellcheck issues --- ra/SAPCMControlZone | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ra/SAPCMControlZone b/ra/SAPCMControlZone index 4f52d8f..4fc5bb3 100644 --- a/ra/SAPCMControlZone +++ b/ra/SAPCMControlZone @@ -214,6 +214,7 @@ function mz_init() declare -a mz_path_arr mz_user="${OCF_RESKEY_USER:-mzadmin}" mz_path_str="${OCF_RESKEY_MZSHELL:-/usr/bin/mzsh}" + # shellcheck disable=SC2206 IFS=: mz_path_arr=( $mz_path_str ) mz_shell_local="${mz_path_arr[0]}" if [[ -n "${mz_path_arr[1]}" ]]; then @@ -223,7 +224,8 @@ function mz_init() # first-and-only (0) path is local and central mz_shell_central="$mz_shell_local" fi - mz_shell="$mz_shell_local" + # mz_shell="$mz_shell_local" + # shellcheck disable=SC2034 mz_search_list="/usr/bin:/usr/sap/[A-Z][A-Z0-9][A-Z0-9]/CMP[0-9][0-9]/CM/bin/" mz_component="${OCF_RESKEY_SERVICE:-platform}" # shellcheck disable=SC2034 # variable for future usage