We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa29ecb commit b3d159cCopy full SHA for b3d159c
script/install-linux.sh
@@ -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