From 3ec8048097e872720e123a07f613e5565cb33126 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 10 Aug 2019 21:33:17 +0200 Subject: copyPhotos: grep should not exit the script --- copyPhotos | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyPhotos b/copyPhotos index de4d4b7..3f5f8c9 100755 --- a/copyPhotos +++ b/copyPhotos @@ -208,9 +208,9 @@ do bild="$( echo "${!daten[@]}" | \ tr ' ' '\n' | \ - grep "${re}" + grep "${re}" || true )" - if [ "$(echo "${bild}" | wc -l | cut -d' ' -f1)" -gt 1 ] + if [ "$(echo "${bild}" | wc -l | cut -d' ' -f1)" -ne 1 ] then bild="$( echo "${!daten[@]}" | \ -- cgit v1.2.3-54-g00ecf