From a852d6c7e5e86869af807817dbaf4cdf4c24cac1 Mon Sep 17 00:00:00 2001 From: Dominik Siebel Date: Tue, 3 Dec 2024 22:27:54 +0100 Subject: [PATCH] fix: overwrite existing binary on unzip --- install/silverbullet-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/silverbullet-install.sh b/install/silverbullet-install.sh index 153a6d1a..a22c7414 100644 --- a/install/silverbullet-install.sh +++ b/install/silverbullet-install.sh @@ -25,7 +25,7 @@ RELEASE=$(curl -s https://api.github.com/repos/silverbulletmd/silverbullet/relea msg_info "Installing ${APPLICATION}" mkdir -p /opt/silverbullet/bin /opt/silverbullet/space wget -q https://github.com/silverbulletmd/silverbullet/releases/download/${RELEASE}/silverbullet-server-linux-x86_64.zip -unzip -q -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip +unzip -oq -d /opt/silverbullet/bin/ silverbullet-server-linux-x86_64.zip chmod +x /opt/silverbullet/bin/silverbullet echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed ${APPLICATION}"