2016-09-18 10:45:10 +02:00
|
|
|
thisroot () {
|
|
|
|
# Workaround thisroot.sh dependency on man
|
2019-11-24 23:51:46 +01:00
|
|
|
if [ -z "${MANPATH-}" ]; then
|
2016-09-18 10:45:10 +02:00
|
|
|
MANPATH=:
|
|
|
|
fi
|
2019-11-24 23:51:46 +01:00
|
|
|
local oldOpts="-u"
|
|
|
|
shopt -qo nounset || oldOpts="+u"
|
|
|
|
set +u
|
2016-09-18 10:45:10 +02:00
|
|
|
source @out@/bin/thisroot.sh
|
2019-11-24 23:51:46 +01:00
|
|
|
set "$oldOpts"
|
2016-09-18 10:45:10 +02:00
|
|
|
}
|
|
|
|
|
2016-10-29 20:47:32 +02:00
|
|
|
postHooks+=(thisroot)
|