summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:59:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:59:12 +0100
commitbc1c06d118ec1cad52d19179bb67b055a1255684 (patch)
tree7f97aa61bfc8d3e951841036965049fe29bbc65b
parentFind maven home based on installed mavens (diff)
downloadutil-bc1c06d118ec1cad52d19179bb67b055a1255684.tar.bz2
util-bc1c06d118ec1cad52d19179bb67b055a1255684.tar.xz
util-bc1c06d118ec1cad52d19179bb67b055a1255684.zip
Suport find gentoo version in chroot
-rw-r--r--bashrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 1116104..bb5003d 100644
--- a/bashrc
+++ b/bashrc
@@ -85,6 +85,8 @@ if [ "$(awk '$5=="/" {print $1}' </proc/1/mountinfo)" != "$(awk '$5=="/" {print
# chroot
if [ -e /etc/redhat-release ]; then
ROOT=$(cat /etc/redhat-release)
+ elif [ -e /etc/gentoo-release ]; then
+ ROOT=$(cat /etc/gentoo-release)
else
ROOT="unknown chroot"
fi