mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update synology.sh
This commit is contained in:
parent
adc7a94aba
commit
72cc08d847
@ -649,6 +649,17 @@ function download_loader() {
|
|||||||
|
|
||||||
echo -e "${DGN}${TAB}Retrieving the URL for the ${BGN}$LOADER_NAME loader${CL}"
|
echo -e "${DGN}${TAB}Retrieving the URL for the ${BGN}$LOADER_NAME loader${CL}"
|
||||||
|
|
||||||
|
if [[ "$LOADER_TYPE" == "arc" || "$LOADER_TYPE" == "redpill" ]] && ! command -v unzip &> /dev/null; then
|
||||||
|
msg_info "Installing unzip..."
|
||||||
|
apt-get update -qq && apt-get install -y unzip -qq
|
||||||
|
if ! command -v unzip &> /dev/null; then
|
||||||
|
msg_error "Failed to install unzip"
|
||||||
|
sleep 2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
msg_ok "Installed unzip successfully."
|
||||||
|
fi
|
||||||
|
|
||||||
case $LOADER_TYPE in
|
case $LOADER_TYPE in
|
||||||
arc)
|
arc)
|
||||||
curl -s https://api.github.com/repos/AuxXxilium/arc/releases/latest \
|
curl -s https://api.github.com/repos/AuxXxilium/arc/releases/latest \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user