aboutsummaryrefslogtreecommitdiff
path: root/src/env
blob: ef6962b896c129e0e1f94ed5d21b2fd2caad2577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#Too be sourced

if [[ -n ${GENTOO_VM} ]]; then
	vmpath=/etc/java-config/vms/${GENTOO_VM}
elif [[ -h ${HOME}/.gentoo/user-vm ]]; then
	vmpath=${HOME}/.gentoo/user-vm
else
	vmpath=/etc/java-config/vms/system-vm
fi

[[ -f ${vmpath}/env ]] && source ${vmpath}/env