Skip to content

Commit

Permalink
scoring_crm_master - get rid of external grep and use bash regex (gr…
Browse files Browse the repository at this point in the history
…ep was anyway missing -q option)
  • Loading branch information
PeterPitterling committed Nov 12, 2022
1 parent 7a96d8c commit c74aa55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ra/SAPHana
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ scoring_crm_master()
local sync="$2"
local myScore=''
for scan in "${SCORING_TABLE[@]}"; do
if grep "$rolePatt" <<< "$roles"; then
if grep "$syncPatt" <<< "$sync"; then
read rolePatt syncPatt score <<< $scan
if [[ "$roles" =~ $rolePatt ]] ; then
if [[ "$sync" =~ $syncPatt ]] ; then
super_ocf_log info "DEC: scoring_crm_master: roles($roles) are matching pattern ($rolePatt)"
super_ocf_log info "DEC: scoring_crm_master: sync($sync) is matching syncPattern ($syncPatt)"
super_ocf_log info "DEC: scoring_crm_master: set score $score"
Expand Down

0 comments on commit c74aa55

Please sign in to comment.