Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit ac0a543

Browse files
authored
Fix fish installation script (#1409)
* use release 3 * use check_packages function * enable fish installation test
1 parent 7a4ef23 commit ac0a543

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

script-library/container-features/test-features.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ _VSC_INSTALL_DESKTOP_LITE=true
5050
_VSC_INSTALL_DOTNET=true
5151
_BUILD_ARG_DOTNET_VERSION=latest
5252
_BUILD_ARG_DOTNET_RUNTIMEONLY=false
53-
#_VSC_INSTALL_FISH=true
53+
_VSC_INSTALL_FISH=true
5454
_VSC_INSTALL_AWS_CLI=true

script-library/fish-debian.sh

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,21 @@ check_packages curl ca-certificates gnupg2 apt-transport-https
6363
# Install fish shell
6464
echo "Installing fish shell..."
6565
if grep -q 'Ubuntu' < /etc/os-release; then
66-
apt-get -y install --no-install-recommends software-properties-common
66+
check_packages software-properties-common
6767
apt-add-repository -y ppa:fish-shell/release-3
68-
apt-get update
69-
apt-get -y install --no-install-recommends fish
70-
apt-get autoremove -y
68+
check_packages fish
7169
elif grep -q 'Debian' < /etc/os-release; then
7270
if grep -q 'stretch' < /etc/os-release; then
73-
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_9.0/ /' | tee /etc/apt/sources.list.d/shells:fish.list
74-
curl -fsSL https://download.opensuse.org/repositories/shells:fish/Debian_9.0/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish.gpg > /dev/null
71+
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_9.0/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
72+
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_9.0/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
7573
elif grep -q 'buster' < /etc/os-release; then
76-
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_10/ /' | tee /etc/apt/sources.list.d/shells:fish.list
77-
curl -fsSL https://download.opensuse.org/repositories/shells:fish/Debian_10/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish.gpg > /dev/null
74+
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_10/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
75+
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_10/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
7876
elif grep -q 'bullseye' < /etc/os-release; then
79-
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_11/ /' | tee /etc/apt/sources.list.d/shells:fish.list
80-
curl -fsSL https://download.opensuse.org/repositories/shells:fish/Debian_11/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish.gpg > /dev/null
77+
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
78+
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_11/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
8179
fi
82-
apt update
83-
apt install -y fish
84-
apt autoremove -y
80+
check_packages fish
8581
fi
8682

8783
# Install Fisher

script-library/test/regression/run-scripts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fi
8181
if [ "${DISTRO}" = "debian" ]; then
8282
run_script awscli
8383
run_script azcli
84-
# run_script fish "false ${USERNAME}"
84+
run_script fish "false ${USERNAME}"
8585
run_script git-from-src "latest true"
8686
run_script git-lfs "" "2.13.3"
8787
run_script github

0 commit comments

Comments
 (0)