Skip to content

Commit 060cf53

Browse files
authored
Merge pull request #77 from selfhoster1312/main
Fix apt install curl, add error message
2 parents 60d3905 + 8638968 commit 060cf53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bookworm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function check_assertions()
273273

274274
# Assert curl is setup
275275
if ! command -v curl 2>&1 >/dev/null; then
276-
apt_get_wrapper --yes install curl
276+
apt_install curl || { error "Yunohost installer requires curl to be installed, but it failed to install it."; return 1; }
277277
fi
278278

279279
# Check PATH var

0 commit comments

Comments
 (0)