From f6fa53d4c38e69cabfe4680d43893199bfc61ed9 Mon Sep 17 00:00:00 2001
From: Andreas Stenius <git@astekk.se>
Date: Fri, 2 Nov 2012 11:25:23 +0100
Subject: [PATCH] utils/installer.sh: fix for replace existing config.

---
 utils/installer.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/utils/installer.sh b/utils/installer.sh
index 2dd1266..234639f 100755
--- a/utils/installer.sh
+++ b/utils/installer.sh
@@ -188,13 +188,13 @@ then
     # Overwrite existing?
     if [ -n $PRELUDE_INTO ]
     then
-	# Install into existing config
-	PRELUDE_INSTALL_DIR=$PRELUDE_INSTALL_DIR"/prelude"
-	install_prelude
-    else
 	# Replace existing config
 	install_prelude
 	make_prelude_dirs
+    else
+	# Install into existing config
+	PRELUDE_INSTALL_DIR=$PRELUDE_INSTALL_DIR"/prelude"
+	install_prelude
     fi
 elif [ -e $PRELUDE_INSTALL_DIR ]
 then