diff options
author | Erich Eckner <git@eckner.net> | 2022-05-16 17:35:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-05-16 17:35:23 +0200 |
commit | 4c6e1878bb65652cfce26cfbffdcfdbc539ff632 (patch) | |
tree | 4aaee823aec4448760f333bc6cceda3d56db40fa | |
parent | 0b2aaf0881644dc7d151542d87b851c9d387ce48 (diff) | |
download | copyPhotos-4c6e1878bb65652cfce26cfbffdcfdbc539ff632.tar.xz |
Null Bilder korrekt erkennen und anzeigen
-rwxr-xr-x | copyPhotos | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -231,9 +231,9 @@ do grep "${re}.*\.[jJ][pP][gG]\$" || true )" fi - if [ "$(echo "${bild}" | wc -l | cut -d' ' -f1)" -ne 1 ] || [ -z "${bild}" ] + if [ "$(printf '%s' "${bild}" | wc -l)" -ne 1 ] then - echo 'Nicht genau ein Treffer, sondern '"$(echo "${bild}" | wc -l | cut -d' ' -f1)"':' + echo 'Nicht genau ein Treffer, sondern '"$(printf '%s' "${bild}" | wc -l)"':' echo "${bild}" | \ sed 's|^| |' read s |