log execution of bash_profile to a file

This commit is contained in:
Danny Robson 2019-02-26 12:34:15 +11:00
parent 86dc3db1a1
commit 16e4aebace
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/log

View File

@ -1,7 +1,9 @@
SELF="$(realpath "${BASH_SOURCE[0]}")"
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
echo "Processing bashrc" > "${DIR}/log"
for d in $(ls "${DIR}"/*/profile); do
source "${d}"
echo "Loading ${d}" >> "${DIR}/log"
source "${d}" >> "${DIR}/log"
done