mirror of
https://codeberg.org/Windfluechter/cleanup-friendica.git
synced 2024-12-05 00:04:26 +01:00
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/
This commit is contained in:
parent
9f86803b02
commit
e02616058c
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ esac
|
||||||
. /usr/local/etc/cleanup_friendica.conf
|
. /usr/local/etc/cleanup_friendica.conf
|
||||||
|
|
||||||
# make a list to be used for grep -E
|
# 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
|
cd ${friendicapath} || exit 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue