From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 3/3] skeleton: Pretty fixes for /etc/profile
Date: Sat, 3 Oct 2015 15:31:20 +0100 [thread overview]
Message-ID: <560FE6B8.9090303@mind.be> (raw)
In-Reply-To: <1443881664-9100-3-git-send-email-maxime.hadjinlian@gmail.com>
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@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@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
next prev parent reply other threads:[~2015-10-03 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-03 14:14 [Buildroot] [PATCH v3 1/3] skeleton: Clean up profile file Maxime Hadjinlian
2015-10-03 14:14 ` [Buildroot] [PATCH v3 2/3] skeleton: Remove bash specific files Maxime Hadjinlian
2015-10-03 14:27 ` Arnout Vandecappelle
2015-10-03 14:14 ` [Buildroot] [PATCH v3 3/3] skeleton: Pretty fixes for /etc/profile Maxime Hadjinlian
2015-10-03 14:31 ` Arnout Vandecappelle [this message]
2015-10-03 14:27 ` [Buildroot] [PATCH v3 1/3] skeleton: Clean up profile file Arnout Vandecappelle
2015-10-03 14:34 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=560FE6B8.9090303@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox