mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-06 07:07:18 +02:00
fix: no need for curl
This commit is contained in:
parent
75c20ec26c
commit
81fbf01147
24
setup.sh
24
setup.sh
@ -491,30 +491,6 @@ function waCheckScriptDependencies() {
|
|||||||
return "$EC_MISSING_DEPS"
|
return "$EC_MISSING_DEPS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 'curl'
|
|
||||||
if ! command -v curl &>/dev/null; then
|
|
||||||
# Display the error type.
|
|
||||||
echo -e "${ERROR_TEXT}ERROR:${CLEAR_TEXT} ${BOLD_TEXT}MISSING DEPENDENCIES.${CLEAR_TEXT}"
|
|
||||||
|
|
||||||
# Display the error details.
|
|
||||||
echo -e "${INFO_TEXT}Please install 'curl' to proceed.${CLEAR_TEXT}"
|
|
||||||
|
|
||||||
# Display the suggested action(s).
|
|
||||||
echo "--------------------------------------------------------------------------------"
|
|
||||||
echo "Debian/Ubuntu-based systems:"
|
|
||||||
echo -e " ${COMMAND_TEXT}sudo apt install curl${CLEAR_TEXT}"
|
|
||||||
echo "Red Hat/Fedora-based systems:"
|
|
||||||
echo -e " ${COMMAND_TEXT}sudo dnf install curl${CLEAR_TEXT}"
|
|
||||||
echo "Arch Linux systems:"
|
|
||||||
echo -e " ${COMMAND_TEXT}sudo pacman -S curl${CLEAR_TEXT}"
|
|
||||||
echo "Gentoo Linux systems:"
|
|
||||||
echo -e " ${COMMAND_TEXT}sudo emerge --ask net-misc/curl${CLEAR_TEXT}"
|
|
||||||
echo "--------------------------------------------------------------------------------"
|
|
||||||
|
|
||||||
# Terminate the script.
|
|
||||||
return "$EC_MISSING_DEPS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 'Dialog'.
|
# 'Dialog'.
|
||||||
if ! command -v dialog &>/dev/null; then
|
if ! command -v dialog &>/dev/null; then
|
||||||
# Display the error type.
|
# Display the error type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user