[Buildroot] [PATCH v3 3/3] skeleton: Pretty fixes for /etc/profile
Arnout Vandecappelle
arnout at mind.be
Sat Oct 3 14:31:20 UTC 2015
On 03-10-15 15:14, Maxime Hadjinlian wrote:
> 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>
Verified that patch is whitespace-only except for the removed \.
Regards,
Arnout
> ---
> system/skeleton/etc/profile | 18 +++++++-----------
> 1 file changed, 7 insertions(+), 11 deletions(-)
>
> 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
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list