From e79c20a76e9c4ea486dfddd3243ba34a7adba41a Mon Sep 17 00:00:00 2001 From: Adrian Dimitrov Date: Sun, 25 Apr 2021 18:57:42 +0300 Subject: [PATCH] Use shorthand for grep In busybox there is no line-regexp for grep, using -x as it is used in busybox, macos and gnugrep. Adding also -F to force plain text and non pattern search. --- transcrypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcrypt b/transcrypt index 2ccd088..7ea5f13 100755 --- a/transcrypt +++ b/transcrypt @@ -238,7 +238,7 @@ validate_cipher() { fi local supported - supported=$($list_cipher_commands | tr -s ' ' '\n' | grep --line-regexp "$cipher") || true + supported=$($list_cipher_commands | tr -s ' ' '\n' | grep -Fx "$cipher") || true if [[ ! $supported ]]; then if [[ $interactive ]]; then printf '"%s" is not a valid cipher; choose one of the following:\n\n' "$cipher"