Don't fail the script if the last command in config returns false

This commit is contained in:
Laurence Withers 2006-12-12 16:15:27 +00:00
parent b6e0f0dc02
commit 4b6457479b
1 changed files with 7 additions and 1 deletions

View File

@ -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!