Merge pull request #77 from selfhoster1312/main

Fix apt install curl, add error message
This commit is contained in:
Alexandre Aubin 2024-05-06 20:15:45 +02:00 committed by GitHub
commit 060cf53559
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -273,7 +273,7 @@ function check_assertions()
# Assert curl is setup
if ! command -v curl 2>&1 >/dev/null; then
apt_get_wrapper --yes install curl
apt_install curl || { error "Yunohost installer requires curl to be installed, but it failed to install it."; return 1; }
fi
# Check PATH var