diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 14:59:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 14:59:12 +0100 |
commit | bc1c06d118ec1cad52d19179bb67b055a1255684 (patch) | |
tree | 7f97aa61bfc8d3e951841036965049fe29bbc65b /bashrc | |
parent | Find maven home based on installed mavens (diff) | |
download | util-bc1c06d118ec1cad52d19179bb67b055a1255684.tar.bz2 util-bc1c06d118ec1cad52d19179bb67b055a1255684.tar.xz util-bc1c06d118ec1cad52d19179bb67b055a1255684.zip |
Suport find gentoo version in chroot
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |