[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | Refined commit-check (!375)

From: Darshit Shah
Subject: Re: [Wget-dev] wget2 | Refined commit-check (!375)
Date: Fri, 04 May 2018 08:18:48 +0000

Darshit Shah started a new discussion on contrib/commit-check:

>  AUTHOR=$(git log -n1 --format='%aN')
>  EMAIL=$(git log -n1 --format='%aE')
> -EMAIL_PARSE=$(echo "$EMAIL" | sed 's/@/ \\[at\\] /g')
> +EMAIL_PARSE=$(echo "$EMAIL" | sed 's/@/ [at] /g')
> +EMAIL_PARSE_PAT=$(echo "$EMAIL_PARSE" | sed 's/\[/\\[/g;s/\]/\\]/g')

Why not simply change it to 
EMAIL_PARSE=$(echo "$EMAIL" | sed 's/@/ \[at\] /g')

This gives the same results and is far more readable.

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]