Commit 7e2a1a81 authored by Aral Balkan's avatar Aral Balkan

Merge branch 'installation-fix' into 'master'

Now stops installation if an existing component is found.

The expected behaviour is for people to uninstall the components/data before reinstalling Better.

See merge request !2
parents b75484de e2408712
......@@ -274,9 +274,9 @@ install(){
humanName=$2
# Check if a Better Builder installation exists.
if [ -d componentToInstall ]; then
echo " • Existing ${humanName} found. Skipping installation."
return 0
if [ -d $componentToInstall ]; then
echo "\n • Error: Existing ${humanName} found.\n\nPlease remove this if you want to reinstall it. You can uninstall existing Better components and data using the ./uninstall script.\n\nExiting.\n"
exit 1
fi
echo "\n • Cloning ${humanName}…"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment