From 940b7b3efe3e72d5744fe28ea6d939fcdef5180e Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Tue, 13 May 2025 16:14:17 +0200 Subject: [PATCH] Fixes fish version check --- update.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index 04df0f6..aaa1b6b 100755 --- a/update.sh +++ b/update.sh @@ -152,13 +152,18 @@ function load_gnome_terminal_profiles() { function install_fish() { echo "--- Ensuring fish is current shell" local fish_good=0 - if ! which fish 1>/dev/null - then + if ! which fish 1>/dev/null + then fish_good=1 fi local current_version=$(fish --version | cut -d " " -f 3) - if [ $(echo "${current_version}\n3.4.0" | sort | head -1) != "3.4.0" ] + local current_version_test=$(cat <