File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,30 +43,8 @@ check_docker_compose
4343# Function to install curl if it's not already installed
4444install_curl () {
4545 if ! command -v curl & > /dev/null; then
46- echo " curl is not installed. Installing curl..."
47- case $OS in
48- Linux)
49- if command -v apt-get & > /dev/null; then
50- sudo apt-get update
51- sudo apt-get install -y curl
52- elif command -v yum & > /dev/null; then
53- sudo yum install -y curl
54- elif command -v pacman & > /dev/null; then
55- sudo pacman -Syu curl
56- else
57- echo " Unsupported package manager. Please install curl manually, or download the Deployer manually from $DEPLOYER_RELEASE_URL ."
58- exit 1
59- fi
60- ;;
61- MINGW* |MSYS* |CYGWIN* )
62- echo " Please install curl manually on Windows."
63- exit 1
64- ;;
65- * )
66- echo " Unsupported operating system: $OS "
67- exit 1
68- ;;
69- esac
46+ echo " curl is not installed. Please install curl and rerun this script."
47+ exit 1
7048 fi
7149}
7250
You can’t perform that action at this time.
0 commit comments