summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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