This commit is contained in:
Scott 2026-05-22 05:31:57 +08:00 committed by GitHub
commit 5b650a5112
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,6 +123,24 @@ function log_for_sentry() {
echo "$@" >> "${FULL_LOG}"
}
# Check to see curl is installed.
function verify_curl_installed() {
if command_exists curl; then
return 0
fi
log_error "CURL NOT INSTALLED"
echo -n
if ! confirm "> Would you like to install Curl? This will run 'apt update && apt upgrade && apt install curl | sh'. [Y/n] "; then
exit 0
fi
if ! run_step "Installing Curl" install_curl; then
log_error "Curl installation failed."
exit 1
fi
echo -n "> Verifying Curl installation................ "
command_exists curl
}
# Check to see if docker is installed.
function verify_docker_installed() {
if command_exists docker; then
@ -157,6 +175,9 @@ function fetch() {
curl --silent --show-error --fail "$@"
}
function install_curl() {
apt update && apt upgrade && apt install curl | sh > /dev/null 2>&1
}
function install_docker() {
(
# Change umask so that /usr/share/keyrings/docker-archive-keyring.gpg has the right permissions.