From 112a83175cd87f3cedbce61a67d73e86a24d3957 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Sun, 1 Sep 2024 23:18:36 -0400 Subject: updated help and fixed SIGINT --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index f104fa6..68b7238 100644 --- a/install.sh +++ b/install.sh @@ -15,12 +15,18 @@ rm premake.tar.gz premake5 gmake make -sudo cp ./bin/Debug/lush/lush /usr/bin/lush +# Install the new shell binary to a temporary location +sudo cp ./bin/Debug/lush/lush /usr/bin/lush.new +# Atomically replace the old binary +sudo mv /usr/bin/lush.new /usr/bin/lush + +# Ensure the shell is registered in /etc/shells if ! grep -Fxq "/usr/bin/lush" /etc/shells; then echo "/usr/bin/lush" | sudo tee -a /etc/shells >/dev/null fi +# Optionally change the shell chsh -s /usr/bin/lush echo "=====================" -- cgit v1.2.3-59-g8ed1b