Ticket #2947: fix quoting and message in "Delete tagged files..." in user menu.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Yury V. Zaytsev 2013-01-07 16:03:41 +01:00 committed by Andrew Borodin
parent 6777d5044f
commit be2883dc86

View File

@ -107,15 +107,15 @@ D Delete tagged files if a copy exists in the other directory.
for i in %t for i in %t
do do
if [ -f "%D/$i" ]; then if [ -f "%D/$i" ]; then
SUM1="`sum $i`" SUM1="`sum \"$i\"`"
SUM2="`sum %D/$i`" SUM2="`sum \"%D/$i\"`"
if [ "$SUM1" = "$SUM2" ]; then if [ "$SUM1" = "$SUM2" ]; then
rm "$i" && echo "${i}: DELETED." rm "$i" && echo "${i}: DELETED."
else else
echo "$i and %D/$i differ: NOT deleted." echo "$i and %D/$i differ: NOT deleted."
fi fi
else else
echo "%i has no copy in %D: NOT deleted." echo "$i has no copy in %D: NOT deleted."
fi fi
done done