summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopyPhotos4
1 files changed, 2 insertions, 2 deletions
diff --git a/copyPhotos b/copyPhotos
index 74b5073..de4d4b7 100755
--- a/copyPhotos
+++ b/copyPhotos
@@ -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}" | \