Update 'install.sh'

This commit is contained in:
Jeffrey Paul 2021-09-10 22:28:29 +00:00
parent effff83698
commit 0d53d60bec

View File

@ -21,10 +21,10 @@ function run_install {
touch $HOME/Library/profile.d/000keep.sh
# run modular setup scripts
for FN in $HOME/Library/user-setup/*.sh ; do
source $HOME/.bashrc
echo "new-user-setup: starting $(basename $FN)..."
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
for FN in "$HOME/Library/user-setup/*.sh" ; do
echo "new-user-setup: starting $(basename "$FN")..."
# we used to run these in a subshell but not we don't because we want the environment to persist between
source "$FN"
rm "$FN"
echo "new-user-setup: removed $(basename $FN)..."
done