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>
Этот коммит содержится в:
родитель
6777d5044f
Коммит
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
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user