mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
6777d5044f
commit
be2883dc86
@ -107,15 +107,15 @@ D Delete tagged files if a copy exists in the other directory.
|
||||
for i in %t
|
||||
do
|
||||
if [ -f "%D/$i" ]; then
|
||||
SUM1="`sum $i`"
|
||||
SUM2="`sum %D/$i`"
|
||||
SUM1="`sum \"$i\"`"
|
||||
SUM2="`sum \"%D/$i\"`"
|
||||
if [ "$SUM1" = "$SUM2" ]; then
|
||||
rm "$i" && echo "${i}: DELETED."
|
||||
else
|
||||
echo "$i and %D/$i differ: NOT deleted."
|
||||
fi
|
||||
else
|
||||
echo "%i has no copy in %D: NOT deleted."
|
||||
echo "$i has no copy in %D: NOT deleted."
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user