about summary refs log tree commit diff stats
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index 4c3f75c..391d828 100755
--- a/setup.sh
+++ b/setup.sh
@@ -107,12 +107,13 @@ install_dscip() {
 		install -m755 "$DSCIP_PATH"/config.sh "$PROJECT_LOCATION"/config.sh
 		install_templates || cp "$DSCIP_PATH"/*.sh .
 	else # If not, clone it from upstream.
-        if [ -z "$DSCIP_VERSION" ];
+        if [ ! "$DSCIP_VERSION" = "" ];
         then # Check if using a release setup.sh, if not, clone from master.
             git clone "https://opencode.net/charadon/dscip" --depth 1 --branch "$DSCIP_VERSION" "$PROJECT_LOCATION"
         else
 		    git clone "https://opencode.net/charadon/dscip" "$PROJECT_LOCATION"
         fi
+		rm "$PROJECT_LOCATION"/setup.sh
 		install_templates || echo "Skipping templates as no Template Directory was set..."
 	fi
 	# Modifying config.sh with variables obtained from setup.sh