@@ -63,25 +63,21 @@ check_packages curl ca-certificates gnupg2 apt-transport-https
63
63
# Install fish shell
64
64
echo " Installing fish shell..."
65
65
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
67
67
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
71
69
elif grep -q ' Debian' < /etc/os-release; then
72
70
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
75
73
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
78
76
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
81
79
fi
82
- apt update
83
- apt install -y fish
84
- apt autoremove -y
80
+ check_packages fish
85
81
fi
86
82
87
83
# Install Fisher
0 commit comments