fix(addons): ensure curl is installed before use in all addon scripts (#11718)

This commit is contained in:
CanbiZ (MickLesk)
2026-02-09 14:11:51 +01:00
committed by GitHub
parent ee3e53a1a2
commit 157e69b365
15 changed files with 58 additions and 3 deletions

View File

@@ -110,6 +110,7 @@ if [[ -f "$INSTALL_PATH" ]]; then
read -r update_prompt
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Updating ${APP}"
if ! command -v curl &>/dev/null; then $PKG_MANAGER curl &>/dev/null; fi
curl -fsSL https://github.com/gtsteffaniak/filebrowser/releases/latest/download/linux-amd64-filebrowser -o "$TMP_BIN"
chmod +x "$TMP_BIN"
mv -f "$TMP_BIN" /usr/local/bin/filebrowser