From e02616058c1b69f20572edbe8582ac55e53d70c9 Mon Sep 17 00:00:00 2001 From: utzer Date: Tue, 29 Dec 2020 20:30:26 +0100 Subject: [PATCH] sed changed to have it correct for grep Should be like this: ``` grep 'pattern1\|pattern2' filename ``` See: https://www.thegeekstuff.com/2011/10/grep-or-and-not-operators/ --- cleanup_friendica.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanup_friendica.sh b/cleanup_friendica.sh index e50ab3f..e23a1ba 100644 --- a/cleanup_friendica.sh +++ b/cleanup_friendica.sh @@ -32,7 +32,7 @@ esac . /usr/local/etc/cleanup_friendica.conf # make a list to be used for grep -E -protected=$(echo $protectedusers | sed 's/\"//g' | sed 's/\ /\|/g') +protected=$(echo $protectedusers | sed 's/\"//g' | sed 's/\ /\\\|/g') cd ${friendicapath} || exit 0