Skip to content

Commit

Permalink
alacritty version check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Sep 13, 2024
1 parent 1a17dbf commit 142d084
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tabs/applications-setup/alacritty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ setupAlacritty() {
else
echo "alacritty is already installed."
fi

alacritty_version=$(alacritty --version | awk '{print $2}')
if [ "$(printf '%s\n' "$alacritty_version" "0.13.0" | sort -V | head -n1)" != "0.13.0" ]; then # Check if alacritty is >= 0.13.0 https://alacritty.org/changelog_0_13_0.html#Changed
echo
echo "Only alacritty >= 0.13.0 is supported."
exit 1
fi

echo "Copy alacritty config files"
if [ -d "${HOME}/.config/alacritty" ]; then
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
Expand Down

0 comments on commit 142d084

Please sign in to comment.