Skip to content

Commit

Permalink
qzeleza#234 сообщения для пользователя
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Jan 4, 2025
1 parent 51ee125 commit 9ae18c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opt/bin/main/setup
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,15 @@ list__backup() {
if grep -qF '*' "${source_file}" ; then
local backup1_file="${backup_path}1_${backup_filename}"

echo "Резервная копия списка старого формата в ${backup1_file}"
cp -n "${source_file}" "${backup1_file}"

if ! [ -f "${backup2_file}" ] ; then
#отрежем звёзды сами в файл нового формата
echo "Преобразуем в новый формат в ${backup2_file}"
sed 's/\*\.//g;s/\*//g' "${source_file}" >"${backup2_file}"
fi
else
echo "Резервная копия списка в ${backup2_file}"
cp -n "${source_file}" "${backup2_file}"
fi
}
Expand Down

0 comments on commit 9ae18c8

Please sign in to comment.