Skip to content

Commit

Permalink
fix: fix package installation on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Jun 25, 2024
1 parent 370a0be commit 6be6f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 6be6f50

Please sign in to comment.