]> git.wh0rd.org - home.git/blobdiff - .bin/custom-chroot
custom-chroot: do not init /root if a git repo is there
[home.git] / .bin / custom-chroot
index f86e41df71e3f548edb7eda593250d35f711d7a4..13ad020a3a054785b3062ad03d99dc9f04495e73 100755 (executable)
@@ -72,9 +72,11 @@ init_chroot() {
                fi
        done
 
-       f="${HOME}/.profile.d/aliases.sh"
-       if [[ -e ${f} ]] ; then
-               cat "${f}" > root/.bash_profile
+       if [[ ! -d root/.git ]] ; then
+               f="${HOME}/.profile.d/aliases.sh"
+               if [[ -e ${f} ]] ; then
+                       cat "${f}" > root/.bash_profile
+               fi
        fi
 }