mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
skeleton: Pretty fixes for /etc/profile
Fix indent and put PATH on a single line. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net> Tested-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8ae4a168de
commit
a92b886a03
@ -1,15 +1,11 @@
|
|||||||
export PATH=\
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||||
/bin:\
|
|
||||||
/sbin:\
|
|
||||||
/usr/bin:\
|
|
||||||
/usr/sbin
|
|
||||||
|
|
||||||
if [ "$PS1" ]; then
|
if [ "$PS1" ]; then
|
||||||
if [ "`id -u`" -eq 0 ]; then
|
if [ "`id -u`" -eq 0 ]; then
|
||||||
export PS1='# '
|
export PS1='# '
|
||||||
else
|
else
|
||||||
export PS1='$ '
|
export PS1='$ '
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PAGER='/bin/more '
|
export PAGER='/bin/more '
|
||||||
@ -17,8 +13,8 @@ export EDITOR='/bin/vi'
|
|||||||
|
|
||||||
# Source configuration files from /etc/profile.d
|
# Source configuration files from /etc/profile.d
|
||||||
for i in /etc/profile.d/*.sh ; do
|
for i in /etc/profile.d/*.sh ; do
|
||||||
if [ -r "$i" ]; then
|
if [ -r "$i" ]; then
|
||||||
. $i
|
. $i
|
||||||
fi
|
fi
|
||||||
unset i
|
unset i
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user