[Buildroot] [git commit] skeleton: Pretty fixes for /etc/profile

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Oct 4 14:53:07 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=a92b886a034ef49945c5ae2858becb35b590d99e
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix indent and put PATH on a single line.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Reviewed-by: Luca Ceresoli <luca at lucaceresoli.net>
Tested-by: Luca Ceresoli <luca at lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 system/skeleton/etc/profile |   24 ++++++++++--------------
 1 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/system/skeleton/etc/profile b/system/skeleton/etc/profile
index e44e568..3a97427 100644
--- a/system/skeleton/etc/profile
+++ b/system/skeleton/etc/profile
@@ -1,15 +1,11 @@
-export PATH=\
-/bin:\
-/sbin:\
-/usr/bin:\
-/usr/sbin
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 
 if [ "$PS1" ]; then
-    if [ "`id -u`" -eq 0 ]; then
-        export PS1='# '
-    else
-        export PS1='$ '
-    fi
+	if [ "`id -u`" -eq 0 ]; then
+		export PS1='# '
+	else
+		export PS1='$ '
+	fi
 fi
 
 export PAGER='/bin/more '
@@ -17,8 +13,8 @@ export EDITOR='/bin/vi'
 
 # Source configuration files from /etc/profile.d
 for i in /etc/profile.d/*.sh ; do
-    if [ -r "$i" ]; then
-        . $i
-    fi
-    unset i
+	if [ -r "$i" ]; then
+		. $i
+	fi
+	unset i
 done


More information about the buildroot mailing list