Skip to content

Commit b3d159c

Browse files
OlyOly
authored andcommitted
add linux install script
1 parent aa29ecb commit b3d159c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

script/install-linux.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/sh
2+
LASTEST="test"
3+
4+
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
6+
7+
case "$choice" in
8+
y|Y ) rm -r "$HOME/.local/bin/kt-encabulator";;
9+
* ) echo "Exiting."; exit;;
10+
esac
11+
fi
12+
13+
echo "Downloading file with curl."
14+
curl -L -o "$HOME/.local/bin/kt-encabulator" "https://github.com/Olypolyu/Kotlin-Encabulator/releases/download/$LASTEST/kt-encabulator"
15+
chmod +x "$HOME/.local/bin/kt-encabulator"
16+
echo "Ready to go! Execute with `$kt-encabulator`"

0 commit comments

Comments
 (0)