Skip to content

Commit

Permalink
fix: shorthand grep options for alpine support (#1106)
Browse files Browse the repository at this point in the history
Co-authored-by: James Hegedus <jthegedus@hey.com>
  • Loading branch information
jthure and jthegedus committed Dec 5, 2021
1 parent ffb188e commit 234778a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/command-plugin-add.bash
Expand Up @@ -8,7 +8,7 @@ plugin_add_command() {

local plugin_name=$1

if ! printf "%s" "$plugin_name" | grep --quiet --extended-regexp "^[a-zA-Z0-9_-]+$"; then
if ! printf "%s" "$plugin_name" | grep -q -E "^[a-zA-Z0-9_-]+$"; then
display_error "$plugin_name is invalid. Name must match regex ^[a-zA-Z0-9_-]+$"
exit 1
fi
Expand Down

0 comments on commit 234778a

Please sign in to comment.