Skip to content

Commit 0983b34

Browse files
authored
Merge pull request #21 from RSS3-Network/do-not-install-curl-only-check
chore: do not use sudo to install curl
2 parents d454f0c + f994796 commit 0983b34

1 file changed

Lines changed: 2 additions & 24 deletions

File tree

automated_deploy.sh

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,8 @@ check_docker_compose
4343
# Function to install curl if it's not already installed
4444
install_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

0 commit comments

Comments
 (0)