mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
Maintain a validated cross-distribution package catalog. Automate upstream updates, isolated builds, diagnostics, and direct publication. Build the official GitHub Desktop sources for Linux with working OAuth.
22 lines
612 B
Bash
Executable File
22 lines
612 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
optional_refresh() {
|
|
local label=$1
|
|
shift
|
|
if ! "$@"; then
|
|
echo "Предупреждение: не удалось обновить ${label}." >&2
|
|
fi
|
|
}
|
|
|
|
# Обновляем кэш иконок
|
|
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
|
optional_refresh "кэш иконок" gtk-update-icon-cache -f -q /usr/share/icons/hicolor
|
|
fi
|
|
|
|
# Обновляем desktop базу данных
|
|
if command -v update-desktop-database >/dev/null 2>&1; then
|
|
optional_refresh "desktop-базу" update-desktop-database -q /usr/share/applications
|
|
fi
|