aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index bdcfe2e..ebdbaeb 100644
--- a/install.sh
+++ b/install.sh
@@ -51,7 +51,12 @@ rm premake.tar.gz
premake5 gmake
make
-cp -rf ./.lush ~/
+if [ ! -d ~/.lush ]; then
+ cp -rf ./.lush ~/
+fi
+
+# always update example
+cp -f ./.lush/scripts/example.lua ~/.lush/scripts/example.lua
# Install the new shell binary to a temporary location
sudo cp ./bin/Debug/lush/lush /usr/bin/lush.new