mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-23 19:00:40 +00:00
fix(addons): ensure curl is installed before use in all addon scripts (#11718)
This commit is contained in:
committed by
GitHub
parent
ee3e53a1a2
commit
157e69b365
@@ -88,6 +88,7 @@ if [ -f "$INSTALL_PATH" ]; then
|
||||
read -r -p "Would you like to update ${APP}? (y/N): " 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/filebrowser/filebrowser/releases/latest/download/linux-amd64-filebrowser.tar.gz" | tar -xzv -C /usr/local/bin &>/dev/null
|
||||
chmod +x "$INSTALL_PATH"
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
Reference in New Issue
Block a user