From: Mike Frysinger Date: Tue, 25 Aug 2015 17:22:38 +0000 (-0700) Subject: custom-chroot: do not init /root if a git repo is there X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=584a84ce2d21a17e8ed9199ebc436b0d4395a8ff;p=home.git custom-chroot: do not init /root if a git repo is there --- diff --git a/.bin/custom-chroot b/.bin/custom-chroot index f86e41d..13ad020 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -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 }