From 3e4f526486845407f7ae3187be6052eb39e359f8 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 29 Jul 2020 11:50:32 +0200 Subject: Add warning for OpenBSD users without a class --- lib/actions/install.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib') diff --git a/lib/actions/install.bash b/lib/actions/install.bash index 2febdd5..ef43c80 100644 --- a/lib/actions/install.bash +++ b/lib/actions/install.bash @@ -30,6 +30,18 @@ action() { shift $(( OPTIND - 1 )) + # Throw OS-specific warnings, if any + case ${RSTAR_PLATFORM["key"]} in + openbsd) + # Check for userlimits + if [[ -z "$(userinfo "$(whoami)" | awk '$1 == "class" { print $2 }')" ]] + then + warn "Your user does not have a class, this may limit the installer's memory" + warn "usage, which can result in failure to compile." + fi + ;; + esac + # Prepare environment for a reproducible install LC_ALL=C.UTF-8 -- cgit v1.1