diff options
-rwxr-xr-x | copyPhotos | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -215,10 +215,10 @@ do bild="$( echo "${!daten[@]}" | \ tr ' ' '\n' | \ - grep "${re}.*\.[jJ][pP][gG]\$" + grep "${re}.*\.[jJ][pP][gG]\$" || true )" fi - if [ "$(echo "${bild}" | wc -l | cut -d' ' -f1)" -ne 1 ] + if [ "$(echo "${bild}" | wc -l | cut -d' ' -f1)" -ne 1 ] || [ -z "${bild}" ] then echo 'Nicht genau ein Treffer, sondern '"$(echo "${bild}" | wc -l | cut -d' ' -f1)"':' echo "${bild}" | \ |