summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-10 21:33:17 +0200
committerErich Eckner <git@eckner.net>2019-08-10 21:33:17 +0200
commit3ec8048097e872720e123a07f613e5565cb33126 (patch)
tree94a6987a4b65944ac4f6768bc9b8fc4ab407285f
parentdc2a57bad09aa84af42ec119eaf22c20bee85e35 (diff)
downloadcopyPhotos-3ec8048097e872720e123a07f613e5565cb33126.tar.xz
copyPhotos: grep should not exit the script
-rwxr-xr-xcopyPhotos4
1 files 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[@]}" | \