diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-07-29 11:50:32 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-11-20 20:42:33 +0100 |
commit | 3e4f526486845407f7ae3187be6052eb39e359f8 (patch) | |
tree | 67dff88dd997f42dd38b950eeff19fff30bfac7e /lib | |
parent | dae12faf2bdc2326c7b19c9a9ee5c1da154a7e5c (diff) |
Add warning for OpenBSD users without a class
Diffstat (limited to 'lib')
-rw-r--r-- | lib/actions/install.bash | 12 |
1 files changed, 12 insertions, 0 deletions
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 |