Pmodules/libpbuild.bash: print warning if Xquarz is not installed if OS is Mac OS X

This commit is contained in:
2016-05-21 18:50:33 +02:00
parent 4ee94a2632
commit 07f212fd18
+3 -2
View File
@@ -147,8 +147,9 @@ pbuild::set_initial_path() {
PATH='/usr/bin:/bin:/usr/sbin:/sbin'
if [[ "${OS}" == "Darwin" ]]; then
# :FIXME: why do we need this?
[[ -d "/opt/X11/bin" ]] && PATH+=':/opt/X11/bin'
# :FIXME: do we really need this?
[[ -d "/opt/X11/bin" ]] && PATH+=':/opt/X11/bin' || \
std::info "Xquarz is not installed in '/opt/X11'"
fi
}