Update fish deps, fix deb install

This commit is contained in:
Andrejus
2021-01-22 18:38:42 +00:00
parent d87184c0c1
commit e0ad8e2a46
8 changed files with 32 additions and 28 deletions

View File

@@ -15,9 +15,10 @@ if not_installed "docker"; then
software-properties-common
# Add repository
add_key "https://download.docker.com/linux/ubuntu/gpg"
distro=$(lsb_release -si | tr '[:upper:]' '[:lower:]') # cast to lowercase
add_key "https://download.docker.com/linux/$distro/gpg" "docker-apt-key"
sudo add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
"deb [arch=amd64] https://download.docker.com/linux/$distro \
$(lsb_release -cs) \
stable"
update