aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-09 10:22:06 -0400
committerGravatar BanceDev 2024-09-09 10:22:06 -0400
commit49de8d30345020c046d125c39bdf2a177b4f9e94 (patch)
treee2c03299979ff3e455739a371088d764bb770cc5 /install.sh
parentadded getenv and putenv to Lua API (diff)
added support for init.lua for configuring shell
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