Skip to content

Commit f994796

Browse files
committed
chore: do not use sudo to install curl
Signed-off-by: Zhou Zhiqiang <[email protected]>
1 parent e8f4c29 commit f994796

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

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)