From: Stefano Stabellini Subject: [PATCH v2 2/6] raisin: remove duplicate source config in raise Date: Tue, 21 Apr 2015 17:48:13 +0100 Message-ID: <1429634897-14377-2-git-send-email-stefano.stabellini@eu.citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: george.dunlap@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Signed-off-by: Stefano Stabellini Acked-by: George Dunlap --- raise | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/raise b/raise index bce6908..68dbfd8 100755 --- a/raise +++ b/raise @@ -17,9 +17,12 @@ _help() { } # Include your defaults -if [[ -e "./config" ]] ; then - . ./config +if [[ ! -e "./config" ]] +then + echo "No config file found, copying default config" + cp defconfig config fi +source ./config # To use this as a library, set RAISIN_PATH appropriately [[ -z "$RAISIN_PATH" ]] && RAISIN_PATH="$PWD/lib" @@ -29,14 +32,6 @@ source ${RAISIN_PATH}/common-functions.sh source ${RAISIN_PATH}/git-checkout.sh source ${RAISIN_PATH}/commands.sh -# Include your defaults -if [[ ! -e "./config" ]] ; then - echo "No config file found, copying default config" - cp defconfig config -fi - -source ./config - # Set up basic functionality common_init -- 1.7.10.4