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

Commit d7c373f

Browse files
authored
Update the install fish script (#1222)
* support bullseye * update install command
1 parent 46d2bd8 commit d7c373f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

script-library/fish-debian.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ if grep -q 'Ubuntu' < /etc/os-release; then
4949
apt-get autoremove -y
5050
elif grep -q 'Debian' < /etc/os-release; then
5151
if grep -q 'stretch' < /etc/os-release; then
52-
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
53-
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
52+
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_9.0/ /' | tee /etc/apt/sources.list.d/shells:fish.list
53+
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
5454
elif grep -q 'buster' < /etc/os-release; then
55-
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_10/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
56-
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
55+
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_10/ /' | tee /etc/apt/sources.list.d/shells:fish.list
56+
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
57+
elif grep -q 'bullseye' < /etc/os-release; then
58+
echo 'deb http://download.opensuse.org/repositories/shells:/fish/Debian_11/ /' | tee /etc/apt/sources.list.d/shells:fish.list
59+
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
5760
fi
5861
apt update
5962
apt install -y fish

0 commit comments

Comments
 (0)