Skip to content

Commit

Permalink
ra/SAPCMControlZone: solving shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fmherschel committed Apr 11, 2024
1 parent 8f660fd commit 19fb671
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ra/SAPCMControlZone
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 19fb671

Please sign in to comment.