From cfba2b2031a3414b8557f481ff11eab44a56e461 Mon Sep 17 00:00:00 2001 From: velvettear Date: Mon, 28 Oct 2024 13:38:30 +0100 Subject: [PATCH] fix restic update --- scripts/update.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index 095433c..d4a2aaa 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -42,11 +42,10 @@ printf ""$font_colored"> removing orphaned packages..."$font_default"\n" printf ""$font_colored"> removing \"no valid subscription\" message..."$font_default"\n" sed -i.bak "s/data.status.* !== 'ACTIVE'/false/I" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js -printf ""$font_colored"> updating restic..."$font_default"\n" -restic self-update - -#printf ""$font_colored"> installing dark theme..."$font_default"\n" -#bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install +if [[ "$(which restic &> /dev/null)" ]]; then + printf ""$font_colored"> updating restic..."$font_default"\n" + restic self-update +fi printf ""$font_colored_bold">> system updated finished after "$SECONDS" seconds!"$font_default"\n"