From eaa7c4e60b7c8914b7f036276df9702fd2c55990 Mon Sep 17 00:00:00 2001 From: Jonas Thuresson Date: Sun, 5 Dec 2021 01:19:15 +0100 Subject: [PATCH 1/3] Changed grep options to be Alpine compliant --- lib/commands/command-plugin-add.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-plugin-add.bash b/lib/commands/command-plugin-add.bash index 68f30fa37..0f4685a68 100644 --- a/lib/commands/command-plugin-add.bash +++ b/lib/commands/command-plugin-add.bash @@ -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 From beed0d4d0454dec8f8949719a98616d14132207b Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Sun, 5 Dec 2021 18:32:18 +1100 Subject: [PATCH 2/3] fix: shorthand grep options for alpine support --- lib/commands/command-plugin-add.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-plugin-add.bash b/lib/commands/command-plugin-add.bash index 0f4685a68..4ad1f8c30 100644 --- a/lib/commands/command-plugin-add.bash +++ b/lib/commands/command-plugin-add.bash @@ -8,7 +8,7 @@ plugin_add_command() { local plugin_name=$1 - if ! printf "%s" "$plugin_name" | grep -q -E "^[a-zA-Z0-9_-]+$"; then + if ! printf "%s" "$plugin_name" | grep -qE "^[a-zA-Z0-9_-]+$"; then display_error "$plugin_name is invalid. Name must match regex ^[a-zA-Z0-9_-]+$" exit 1 fi From 1e001390e85b33328e0a2539f6e7db7896840755 Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Sun, 5 Dec 2021 18:32:59 +1100 Subject: [PATCH 3/3] fix: shorthand grep options for alpine support --- lib/commands/command-plugin-add.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-plugin-add.bash b/lib/commands/command-plugin-add.bash index 4ad1f8c30..0f4685a68 100644 --- a/lib/commands/command-plugin-add.bash +++ b/lib/commands/command-plugin-add.bash @@ -8,7 +8,7 @@ plugin_add_command() { local plugin_name=$1 - if ! printf "%s" "$plugin_name" | grep -qE "^[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