diff mbox

[v2,3/3] skeleton: Pretty fixes for /etc/profile

Message ID 1443874688-8812-3-git-send-email-maxime.hadjinlian@gmail.com
State Superseded
Headers show

Commit Message

Maxime Hadjinlian Oct. 3, 2015, 12:18 p.m. UTC
Fix indent and put PATH on a single line.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 system/skeleton/etc/profile | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/system/skeleton/etc/profile b/system/skeleton/etc/profile
index c40a311..df0be7f 100644
--- a/system/skeleton/etc/profile
+++ b/system/skeleton/etc/profile
@@ -1,13 +1,9 @@ 
-export PATH=\
-/bin:\
-/sbin:\
-/usr/bin:\
-/usr/sbin
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 
 if [ "`id -u`" -eq 0 ]; then
-    export PS1='# '
+	export PS1='# '
 else
-    export PS1='$ '
+	export PS1='$ '
 fi
 
 export PAGER='/bin/more '
@@ -15,8 +11,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