Use nightly to get kitty-tool until 0.27 is released

This commit is contained in:
Kovid Goyal 2022-11-17 11:05:46 +05:30
parent 1addfea261
commit 81db5eb82f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -72,7 +72,13 @@ release_version=$(fetch_quiet "https://sw.kovidgoyal.net/kitty/current-version.t
die "Could not get kitty latest release version" die "Could not get kitty latest release version"
} }
url="https://github.com/kovidgoyal/kitty/releases/download/v$release_version/kitty-tool-$OS-$arch" release_version="v$release_version"
# no kitty-tool available till 0.27.0
case "$release_version" in
v0.26.*) release_version="nightly";;
esac
url="https://github.com/kovidgoyal/kitty/releases/download/$release_version/kitty-tool-$OS-$arch"
printf "\033[33mkitty-tool needs to be installed\033[m\n\n" printf "\033[33mkitty-tool needs to be installed\033[m\n\n"
command mkdir -p "$install_dir" command mkdir -p "$install_dir"