summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-05-16 17:35:23 +0200
committerErich Eckner <git@eckner.net>2022-05-16 17:35:23 +0200
commit4c6e1878bb65652cfce26cfbffdcfdbc539ff632 (patch)
tree4aaee823aec4448760f333bc6cceda3d56db40fa
parent0b2aaf0881644dc7d151542d87b851c9d387ce48 (diff)
downloadcopyPhotos-4c6e1878bb65652cfce26cfbffdcfdbc539ff632.tar.xz
Null Bilder korrekt erkennen und anzeigen
-rwxr-xr-xcopyPhotos4
1 files changed, 2 insertions, 2 deletions
diff --git a/copyPhotos b/copyPhotos
index 988da77..ad3b033 100755
--- a/copyPhotos
+++ b/copyPhotos
@@ -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