From 6e7e69b19dc34b8022b19c7959a88eef0395a213 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 Aug 2021 14:50:30 -0400 Subject: [PATCH] fix: force grep to run in quiet mode in domains:add call --- plugins/domains/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/domains/functions b/plugins/domains/functions index e995c8cf3..d32f6e108 100755 --- a/plugins/domains/functions +++ b/plugins/domains/functions @@ -54,7 +54,7 @@ domains_add() { done for DOMAIN in "$@"; do - if grep -x --line-regexp --fixed-strings "$DOMAIN" "$APP_VHOST_PATH" 2>/dev/null; then + if grep -q --line-regexp --fixed-strings "$DOMAIN" "$APP_VHOST_PATH" 2>/dev/null; then dokku_log_info1 "Skipping: $DOMAIN already added to $APP" else echo "$DOMAIN" >>"$APP_VHOST_PATH"