6
0
Fork 0
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:
utzer 2020-12-29 20:30:26 +01:00 committed by GitHub
parent 9f86803b02
commit e02616058c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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