Skip to content

Commit ad715ec

Browse files
committed
Revert "Allow % for grant host option in createdb.sh"
This reverts commit 451148f.
1 parent f52fd89 commit ad715ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/createdb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ set_dbuserpass () {
5050
}
5151

5252
add_granthost () {
53-
if expr "x$1" : 'x[-a-zA-Z0-9.*%_][-a-zA-Z0-9.*%_]*$' >/dev/null; then
53+
if expr "$1" : '[-a-zA-Z0-9.*][-a-zA-Z0-9.*]*$' >/dev/null; then
5454
granthosts="$granthosts $1"
5555
else
5656
echo "Expected --grant-host=HOSTNAME" 1>&2

0 commit comments

Comments
 (0)