log execution of bash_profile to a file
This commit is contained in:
parent
86dc3db1a1
commit
16e4aebace
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/log
|
@ -1,7 +1,9 @@
|
|||||||
SELF="$(realpath "${BASH_SOURCE[0]}")"
|
SELF="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
|
DIR="$(cd "$(dirname "${SELF}")"; pwd -P)"
|
||||||
|
|
||||||
|
echo "Processing bashrc" > "${DIR}/log"
|
||||||
|
|
||||||
for d in $(ls "${DIR}"/*/profile); do
|
for d in $(ls "${DIR}"/*/profile); do
|
||||||
source "${d}"
|
echo "Loading ${d}" >> "${DIR}/log"
|
||||||
|
source "${d}" >> "${DIR}/log"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user