Skip to content

Commit

Permalink
Low: pgsql: eliminate bashism
Browse files Browse the repository at this point in the history
  • Loading branch information
NAKAHIRA Kazutomo committed Apr 8, 2014
1 parent 011b051 commit 572c32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heartbeat/pgsql
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,8 @@ pgsql_validate_all() {
else
if grep -q "$rep_mode_string" $OCF_RESKEY_config; then
ocf_log info "deleting include directive from $OCF_RESKEY_config"
sed -i "/${rep_mode_string//\//\\/}/d" $OCF_RESKEY_config
rep_mode_string=`echo $rep_mode_string | sed -e 's|/|\\\\/|g'`
sed -i "/$rep_mode_string/d" $OCF_RESKEY_config
fi
fi
fi
Expand Down

0 comments on commit 572c32a

Please sign in to comment.