Skip to content

Commit

Permalink
Merge pull request #1103 from vvidic/pgsql-bashism
Browse files Browse the repository at this point in the history
pgsql: fix possible bashism
  • Loading branch information
oalbrigt authored Feb 26, 2018
2 parents ebbad86 + 59eaa65 commit acde3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heartbeat/pgsql
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ pgsql_validate_all() {
return $OCF_ERR_CONFIGURED
fi

echo "$OCF_RESKEY_replication_slot_name" | grep -q -e [^a-z0-9_]
echo "$OCF_RESKEY_replication_slot_name" | grep -q -e '[^a-z0-9_]'
if [ $? -eq 0 ]; then
ocf_exit_reason "Invalid replication_slot_name($OCF_RESKEY_replication_slot_name). only use lower case letters, numbers, and the underscore character."
return $OCF_ERR_CONFIGURED
Expand Down

0 comments on commit acde3bf

Please sign in to comment.