From 584a84ce2d21a17e8ed9199ebc436b0d4395a8ff Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Aug 2015 10:22:38 -0700 Subject: [PATCH] custom-chroot: do not init /root if a git repo is there --- .bin/custom-chroot | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 } -- 2.39.2