]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Enhance debug messages: print a line for each script.
authorAlexander Barton <alex@barton.de>
Fri, 21 Nov 2008 09:38:04 +0000 (10:38 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 21 Nov 2008 09:38:04 +0000 (10:38 +0100)
If the file "/tmp/ConfigDebug.$USER" exists, all the scripts print out a
line with its name when run.

sys/bashrc
sys/profile
user/bash_logout
user/bash_profile
user/bashrc

index 12f19415d48dec7b8739cbcb2c9eb46f461e56f2..fe509e369ccf3c7d30a3781d7236933e098e9b08 100644 (file)
@@ -20,7 +20,8 @@
 # 2004-05-27, alex@Arthur.Ath.CX
 #
 
-#echo "/etc/bash.bashrc ..."
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> /etc/bash.bashrc ..."
+
 BASHRCREAD="true"
 
 [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile
index 77b7c314336cebed147c3f83c60158bdfe08ee99..c4a05d5f1b6dc034dd8c8ee55fc437a6a5eb8c3c 100644 (file)
@@ -48,7 +48,8 @@
 #  - Initial version.
 #
 
-#echo "/etc/profile ..."
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> /etc/profile ..."
+
 PROFILEREAD="true"
 export PROFILEREAD
 
index a9766fd512869ea669192c1161f1c2cbaa12839d..59a12fcda4db48a8316fae73fb4bf3fa7d37855f 100644 (file)
@@ -8,6 +8,8 @@
 #  - Initial version.
 #
 
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> ~/.bash_logout ..."
+
 # clean up SSH agents
 [ $SSH_AGENT_PID ] && eval `ssh-agent -k`
 
index 04876c7fa3b0fd2462b2ca86d75e7f9e2ee8c78e..9801fd536fe0dcd1d8ec08fdc788e0c2b6a9f554 100644 (file)
@@ -9,6 +9,8 @@
 #  - initial version.
 #
 
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> ~/.bash_profile ..."
+
 [ -n "$LANG" ] || export LANG="de_DE.ISO8859-1"
 export LC_MESSAGES="C"
 export EMAIL="alex@barton.de"
index a006149724482f997d62b4f165d5b4dd8b13904f..58ad4eeeacd45e37c885c55ace7eec85b36b1f77 100644 (file)
@@ -7,6 +7,8 @@
 #  - Initial version.
 #
 
+[ -e /tmp/ConfigDebug.$USER ] && echo " >> ~/.bashrc ..."
+
 [ -z "$BASHRCREAD" -a -r /etc/bash.bashrc ] && source /etc/bash.bashrc
 [ -z "$BASHRCREAD" -a -r /etc/bashrc ] && source /etc/bashrc