improved regex

This commit is contained in:
Gerhard Hoffmann 2022-06-02 17:38:02 +02:00
parent bcb961fc95
commit e41bdf540d

View File

@ -173,7 +173,7 @@ pull_customer_repository () {
log_debug "$func:${LINENO} git-pull-result=${git_result}"
if grep -qE "^Already\s+\up\s+\to\s+date.*$" <<< "$git_result"; then
if grep -qE "^.*?Already\s+\up\s+\to\s+date.*$" <<< "$git_result"; then
log_warn "$func:${LINENO}: repository $PWD already up to date."
read $1 <<< 'yes'
cd_home ; return 1