Files
sensible-utils/sensible-utils.install
Fredrick Brennan 3ece8e10bf v0.0.20 pkgrel 6
+no fork bomb test
2023-07-04 13:12:33 -04:00

28 lines
538 B
Bash

#!/bin/bash
source /usr/share/sensible-utils/sensible-envvars
source /etc/profile
post_install() {
for cmd in ${!SENSIBLEENVVARS[*]}; do
local cmdpath
cmdpath="$(which $cmd)"
[[ -n "$cmdpath" ]] || continue
local envvar
envvar="${SENSIBLEENVVARS["$cmd"]}"
if [[ -z "$envvar" ]]; then
continue
fi
[[ -z "${!envvar}" ]] && echo "$cmdpath requires $envvar be set in the environment to work properly!"
done
return 0
}
post_upgrade() {
post_install "$@"
return $?
}
# vim:set ts=2 sw=2 et: