From patchwork Sat Oct 3 14:14:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 525919 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 4FD6B1402F0 for ; Sun, 4 Oct 2015 00:14:47 +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=Yi86yBqg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 84D2532B36; Sat, 3 Oct 2015 14:14:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k7DqdQpg9d6R; Sat, 3 Oct 2015 14:14:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AF04632E28; Sat, 3 Oct 2015 14:14:38 +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 18CEE1C0539 for ; Sat, 3 Oct 2015 14:14:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 14F138912A for ; Sat, 3 Oct 2015 14:14:36 +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 DEBiaOIFid03 for ; Sat, 3 Oct 2015 14:14:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5626289129 for ; Sat, 3 Oct 2015 14:14:35 +0000 (UTC) Received: by wiclk2 with SMTP id lk2so62741324wic.1 for ; Sat, 03 Oct 2015 07:14: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=DM8V9JBIcmkkU042M+782zOAOIH0Upab89DsYLXOdvc=; b=Yi86yBqg7RHCbkTq6m8r/NKkG6KQ1iY2Xctvx3zcNmRsepo3arQyYev8iWjVW2evjy +aRG4pv8BnFIuUS5o0L8UQ1icXcOptCY4LF4YVKuNFl/dm/qnF7EDdMxkKzNcOCJmhSQ EULYcdYUVMFjhDhWGpWbhv0Nzvdp5we9XCPkDJYDW8Rw5QdSj2ODAV+GZ7vTl/utES6U 8u+6CKVU5SVf1pGuBJIrWVeVqTnMVSh/Pd5pPWIYOY0AO1fdMRWa6grP2MXs7a0soroG cikIMjc08vBa1q2xq6rQyA0Mo8lBZdRbgATvR6aV9hMVWbglA+VE1E3tDUr0g2zUrO73 oadA== X-Received: by 10.194.209.240 with SMTP id mp16mr21534248wjc.100.1443881673956; Sat, 03 Oct 2015 07:14:33 -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 jf3sm4378798wic.8.2015.10.03.07.14.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 07:14:33 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 3 Oct 2015 16:14:24 +0200 Message-Id: <1443881664-9100-3-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443881664-9100-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1443881664-9100-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH v3 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) --- 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