X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.bin%2Fcustom-chroot;h=13ad020a3a054785b3062ad03d99dc9f04495e73;hb=584a84ce2d21a17e8ed9199ebc436b0d4395a8ff;hp=f86e41df71e3f548edb7eda593250d35f711d7a4;hpb=62e1ccd971dfb77f03b4efdcd8e070c94788c024;p=home.git 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 }