log execution of bash_profile to a file
This commit is contained in:
parent
86dc3db1a1
commit
16e4aebace
|
@ -0,0 +1 @@
|
|||
/log
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue