mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user