|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/5] raisin: remove duplicate source config in raise
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |