From fdf7ee12f77c2c55b6e5f9c026f70a9a26415043 Mon Sep 17 00:00:00 2001 From: Abra Date: Tue, 10 Jul 2018 00:44:26 +0400 Subject: [PATCH] strict comparison - --- .zprezto/runcoms/zalias | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias index a1bc1b7..9946d90 100644 --- a/.zprezto/runcoms/zalias +++ b/.zprezto/runcoms/zalias @@ -209,11 +209,12 @@ ffmpeg_timelapse() { } update_.g() { - local RES=$(.g pull) + local RES=$(.g pull 2>&1) - if [[ $RES != "Already up-to-date." ]]; then + if [[ ! ($RES =~ "Already up-to-date") ]]; then echo "Updated .g" echo $RES echo "======" + echo fi } \ No newline at end of file