From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24186 invoked by alias); 3 Jul 2012 03:22:15 -0000 Received: (qmail 24170 invoked by uid 22791); 3 Jul 2012 03:22:14 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-gh0-f169.google.com (HELO mail-gh0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Jul 2012 03:21:52 +0000 Received: by ghrr18 with SMTP id r18so5632280ghr.0 for ; Mon, 02 Jul 2012 20:21:51 -0700 (PDT) Received: by 10.66.81.199 with SMTP id c7mr25821561pay.79.1341285711046; Mon, 02 Jul 2012 20:21:51 -0700 (PDT) Received: from flambe.is-a-geek.org (c-24-19-56-184.hsd1.wa.comcast.net. [24.19.56.184]) by mx.google.com with ESMTPS id vz9sm14479358pbc.12.2012.07.02.20.21.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Jul 2012 20:21:50 -0700 (PDT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH] scripts/showSamples.sh: fix list-samples X-Mercurial-Node: e489fc02a7ab0a7e04b922728bf898dee80d0ee4 Message-Id: User-Agent: Mercurial-patchbomb/2.2.2 Date: Tue, 03 Jul 2012 03:22:00 -0000 From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00009.txt.bz2 # HG changeset patch # User Bryan Hundven # Date 1341284878 25200 # Node ID e489fc02a7ab0a7e04b922728bf898dee80d0ee4 # Parent 4c8fd10c18e94975239a69897f38d9eb046fad8c scripts/showSamples.sh: fix list-samples If $(pwd)/.config.sample doesn't exist, don't try to source it. Also, don't forget to quote it, as the parent directories might have spaces or other weird characters. Signed-off-by: Bryan Hundven diff -r 4c8fd10c18e9 -r e489fc02a7ab scripts/showSamples.sh --- a/scripts/showSamples.sh Mon Jun 18 13:36:29 2012 +0200 +++ b/scripts/showSamples.sh Mon Jul 02 20:07:58 2012 -0700 @@ -37,7 +37,7 @@ fi ;; esac - . $(pwd)/.config.sample + [ -r "$(pwd)/.config.sample" ] && . "$(pwd)/.config.sample" if [ -z "${wiki}" ]; then t_width=14 printf "%-*s [%s" ${width} "${sample}" "${sample_type}" -- For unsubscribe information see http://sourceware.org/lists.html#faq