mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 11:50:06 +00:00
fix(addons): ensure curl is installed before use in all addon scripts (#11718)
This commit is contained in:
parent
ee3e53a1a2
commit
157e69b365
15 changed files with 58 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue