File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/sh
2- LASTEST=" test "
2+ LASTEST=" 0.1.0 "
33
44if [ -f " $HOME /.local/bin/kt-encabulator" ]; then
55 echo -e " \n> Found existing binary in local bin. Do you wish to Continue? \e[1;34m(y/n)\e[0m"
@@ -16,4 +16,6 @@ curl -L -o "$HOME/.local/bin/kt-encabulator" "https://github.com/Olypolyu/Kotlin
1616chmod +x " $HOME /.local/bin/kt-encabulator"
1717
1818echo -e " \n\e[1;32mReady to go!\e[0m Execute with \" \e[1;34mkt-encabulator\e[0m\" "
19- echo " - Run with -h or --help for documentation. \n"
19+ echo " - Run with -h or --help for documentation. \n"
20+
21+ echo $LASTEST >> " $HOME /.local/bin/.kt-encabulator.version.txt"
Original file line number Diff line number Diff line change 1- $latest = " test "
1+ $latest = " 0.1.0 "
22$binPath = " $env: USERPROFILE \.local\bin"
33$exePath = Join-Path $binPath " kt-encabulator.exe"
44
@@ -23,6 +23,7 @@ if (-Not (Test-Path -Path $binPath)) {
2323
2424Write-Host " `n > Downloading binary with Invoke-WebRequest..."
2525Invoke-WebRequest - Uri " https://github.com/Olypolyu/Kotlin-Encabulator/releases/download/$latest /kt-encabulator.exe" - OutFile $exePath
26+ Out-File $latest - FilePath Join-Path $binPath " .kt-encabulator.version.txt"
2627
2728Write-Host - NoNewline " `n Ready to go! " - ForegroundColor Green
2829Write-Host - NoNewline " Execute with "
You can’t perform that action at this time.
0 commit comments