Skip to content

Commit 6efda4f

Browse files
OlyOly
authored andcommitted
fix linux install script
1 parent b3d159c commit 6efda4f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

script/install-linux.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22
LASTEST="test"
33

44
if [ -f "$HOME/.local/bin/kt-encabulator" ]; then
5-
read -p "Found existing binary in local bin. Do you wish to Continue (y/n)?" choice
5+
echo -e "> Found existing binary in local bin. Do you wish to Continue? \e[1;34m(y/n)\e[0m"
66

7+
read choice < /dev/tty
78
case "$choice" in
89
y|Y ) rm -r "$HOME/.local/bin/kt-encabulator";;
9-
* ) echo "Exiting."; exit;;
10+
* ) echo "The existing file will not be overwritten. Exiting..."; exit;;
1011
esac
1112
fi
1213

13-
echo "Downloading file with curl."
14+
echo " "
15+
echo -e "> Downloading binary with curl...\n"
1416
curl -L -o "$HOME/.local/bin/kt-encabulator" "https://github.com/Olypolyu/Kotlin-Encabulator/releases/download/$LASTEST/kt-encabulator"
1517
chmod +x "$HOME/.local/bin/kt-encabulator"
16-
echo "Ready to go! Execute with `$kt-encabulator`"
18+
19+
echo " "
20+
echo -e "\e[1;32mReady to go!\e[0m Execute with \"\e[1;34mkt-encabulator\e[0m\""
21+
echo " - Run with -h or --help for documentation."
22+
echo " "

0 commit comments

Comments
 (0)