Soften missing backup delete message
This commit is contained in:
1 parent
da902635b7
commit
575c095e81
1 file changed
+5
-4
@@ -177,8 +177,8 @@ handle_delete_backup() {
|
||||
esac
|
||||
|
||||
if [ ! -f "$file" ]; then
|
||||
RESULT_CODE=2
|
||||
printf 'Файл не найден: %s\n' "$file" >"$RESULT_FILE"
|
||||
RESULT_CODE=0
|
||||
printf 'Архив уже удален или его нет в папке: %s\n' "$file" >"$RESULT_FILE"
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -433,9 +433,10 @@ table { width: 100%; border-collapse: collapse; }
|
||||
td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
|
||||
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
||||
.actions form { margin: 0; }
|
||||
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
||||
.status { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); }
|
||||
@media (max-width: 820px) { .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .hero { align-items: flex-start; flex-direction: column; } .hero-actions { justify-content: flex-start; min-width: 0; } }
|
||||
@media (max-width: 820px) { .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .hero { align-items: flex-start; flex-direction: column; } .hero-actions { justify-content: flex-start; min-width: 0; } .section-head { flex-direction: column; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -452,7 +453,7 @@ td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: lef
|
||||
EOF
|
||||
|
||||
if [ -n "$RESULT_FILE" ]; then
|
||||
printf '<section class="panel span12"><h2>%s</h2><p>Код выхода: %s</p><pre>' "$(h "$RESULT_TITLE")" "$(h "$RESULT_CODE")"
|
||||
printf '<section class="panel span12"><div class="section-head"><div><h2>%s</h2><p>Код выхода: %s</p></div><a class="button small" href="%s?key=%s">Скрыть сообщение</a></div><pre>' "$(h "$RESULT_TITLE")" "$(h "$RESULT_CODE")" "$(self_url)" "$key"
|
||||
html_escape <"$RESULT_FILE"
|
||||
printf '</pre></section>'
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user