From 4b6457479b91b47156305ff11399cd525889f8e6 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Tue, 12 Dec 2006 16:15:27 +0000 Subject: [PATCH] Don't fail the script if the last command in config returns false --- skel/make.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/skel/make.sh b/skel/make.sh index 2aa6af1..359be2f 100755 --- a/skel/make.sh +++ b/skel/make.sh @@ -10,7 +10,12 @@ # This file is the script used to build @P@. There are some # options that can be edited; these are set in the file 'config' (or you # can pass them in as environment variables). -source config || exit 1 +if [ ! -e "config" ] +then + echo "Configuration file not found???" + exit 1 +fi +source "config" # don't fail on error, since last command in config might return false @@ -256,6 +261,7 @@ do echo "Cleaning..." rm -rf ${OUTPUT_DIRS} print_success "Done" + true ;; # bad Kdevelop! bad!