Skip to content

Commit

Permalink
angi: re-apply shellcheck compatibility (lost be cross-porting PR144)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmherschel committed May 6, 2024
1 parent 05db52b commit 4aa2b6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ra/saphana-common-lib
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,9 @@ function HANA_CALL() {
output=$(timeout --foreground -s 9 "$timeOut" su - "${sid}adm" -c "($pre_script; timeout -s 9 $timeOut $cmd > $cmd_out_log) >& $cmd_err_log" 2>"$su_err_log"); rc="$?"
;;
esac
if [[ -f "$cmd_out_log" ]]; then output=$(<$cmd_out_log); rm -f "$cmd_out_log"; fi
if [[ -f "$su_err_log" ]]; then suErr=$(<$su_err_log); rm -f "$su_err_log"; else suErr='NA'; fi
if [[ -f "$cmd_err_log" ]]; then cmdErr=$(<$cmd_err_log); rm -f "$cmd_err_log"; else cmdErr='NA'; fi
if [[ -f "$cmd_out_log" ]]; then output=$(<"$cmd_out_log"); rm -f "$cmd_out_log"; fi
if [[ -f "$su_err_log" ]]; then suErr=$(<"$su_err_log"); rm -f "$su_err_log"; else suErr='NA'; fi
if [[ -f "$cmd_err_log" ]]; then cmdErr=$(<"$cmd_err_log"); rm -f "$cmd_err_log"; else cmdErr='NA'; fi
super_ocf_log debug "DBG: RA ==== action HANA_CALL (cmd is '$cmd', rc is '$rc', stderr from su is '$suErr', stderr from cmd is '$cmdErr') ===="
# on rc=1 - retry to improve the behavior in AD environments
# fh 20230127 deactivate this part. rc=1 could also be the valid rc of the called command
Expand Down

0 comments on commit 4aa2b6e

Please sign in to comment.