From patchwork Sat Oct 3 14:53:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 525938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id E8FCA1402B6 for ; Sun, 4 Oct 2015 00:53:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=v52HLxWM; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 296FD8AE27; Sat, 3 Oct 2015 14:53:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8krmW0+kdbY9; Sat, 3 Oct 2015 14:53:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E668B8AEAA; Sat, 3 Oct 2015 14:53:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 622841C08FE for ; Sat, 3 Oct 2015 14:53:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E2D18B9B7 for ; Sat, 3 Oct 2015 14:53:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0odLQkSla0Lk for ; Sat, 3 Oct 2015 14:53:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id CB8B78B88F for ; Sat, 3 Oct 2015 14:53:35 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so67197494wic.1 for ; Sat, 03 Oct 2015 07:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=01k5VpB9qVdKXBBzoRGen2FR9gSIC+r+bL/ojnYg18c=; b=v52HLxWMNGyY1WNcoYalMirxq+/JaTSAHdLyRYmq2HY3KYu62gwmo8JER11Od5uCke y1g8mdUlkWuUt42bLZFxrqJY1+KKZQfBr3jE2tCWNeeIWa9MY80D2RJ76mX6bJ+rWXQi UkQbfouBB41FRREiRKrSF13f+Vg2mxsw14EHiRyePqVzT7qI8d2v1k1wTLvZrRVqNcI6 p/kkrQvF9rccTX8wlar9fqyQNn2A8RTzwGUL7aL0d3JaQtslzSHArmc38mtyXUNerJPg Ffw/GRdOiRr7obadnMWYqImpBGyKevgWmXvjUVhj/ZglgaztQqLFi8fYf7rUqPi6zg2J 0mxQ== X-Received: by 10.180.90.33 with SMTP id bt1mr2716459wib.59.1443884014577; Sat, 03 Oct 2015 07:53:34 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-204-92.w80-11.abo.wanadoo.fr. [80.11.219.92]) by smtp.gmail.com with ESMTPSA id s1sm4490152wik.16.2015.10.03.07.53.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 07:53:33 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 3 Oct 2015 16:53:22 +0200 Message-Id: <1443884002-13585-3-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443884002-13585-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1443884002-13585-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH v4 3/3] skeleton: Pretty fixes for /etc/profile X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix indent and put PATH on a single line. Signed-off-by: Maxime Hadjinlian Acked-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Luca Ceresoli Tested-by: Luca Ceresoli --- system/skeleton/etc/profile | 24 ++++++++++-------------- 1 file 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