From 6be6f504c7acb6ddd9ebb7620fc85dbbc38524b4 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 25 Jun 2024 15:15:56 +0000 Subject: [PATCH] fix: fix package installation on ubuntu --- README.md | 2 +- setup.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c6215a3..b7966c4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ To install these dotfiles: - If you're on a Unix-based system (Linux, macOS, Windows Subsystem for Linux): - 1. `setup.sh` + 1. `SSH_AUTH_SOCK="${SSH_AUTH_SOCK:-}" setup.sh` - If you're on Windows: diff --git a/setup.sh b/setup.sh index de26c7c..99a91d7 100755 --- a/setup.sh +++ b/setup.sh @@ -193,7 +193,7 @@ setup_debian() { docker_distribution="debian" - if is_official_debian; then + if is_official_debian || is_ubuntu; then echo "Enabling main repository" sudo add-apt-repository --yes main fi @@ -206,7 +206,7 @@ setup_debian() { docker_distribution="ubuntu" fi - if is_official_debian; then + if is_official_debian || is_ubuntu; then docker_apt_repository_url="https://download.docker.com/linux/${docker_distribution}" if ! is_apt_repo_available "${docker_apt_repository_url}"; then add_apt_repo \