fix(nextcloud-mail-sync): fix bash syntax
This commit is contained in:
parent
c7c2e03ea2
commit
caa23e6f1c
@ -33,7 +33,7 @@ list_mail_accounts() {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
id != "" && /@/ {
|
id != "" && /@/ {
|
||||||
# Keep the regex simple (mawk doesn't support interval expressions like {2,}).
|
# Keep the regex simple (mawk does not support interval expressions like {2,}).
|
||||||
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+/)) {
|
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+/)) {
|
||||||
printf("%s\t%s\n", id, substr($0, RSTART, RLENGTH));
|
printf("%s\t%s\n", id, substr($0, RSTART, RLENGTH));
|
||||||
id="";
|
id="";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user