From 6b34aa61ca8bd558ed06a055bddcfe5b322da157 Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 25 Mar 2024 16:51:03 +0000 Subject: [PATCH] fuck you debian --- make.d/install.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make.d/install.mk b/make.d/install.mk index a4fc8071..704e91d0 100644 --- a/make.d/install.mk +++ b/make.d/install.mk @@ -27,6 +27,13 @@ install: build install-docker cp --no-clobber .templates/env.template .env $(EDITOR) .env +# fuck you debian +ifeq ($(shell lsb_release -si),"Ubuntu") + REPOS = rmescandon/yq ansible/ansible +else + REPOS = ansible/ansible +endif + REPOS = rmescandon/yq ansible/ansible MISSING_REPOS := $(foreach repo,$(REPOS),$(if $(shell apt-cache policy | grep $(repo)),,addrepo/$(repo))) @@ -34,7 +41,6 @@ EXECUTABLES = git nano jq yq python3-pip yamllint python3-pathspec ansible MISSING_PACKAGES := $(foreach exec,$(EXECUTABLES),$(if $(shell dpkg -s "$(exec)" &> /dev/null),,addpackage-$(exec))) addrepo/%: - sudo apt install software-properties-common -y # fuck you debian sudo apt-add-repository ppa:$* -y addpackage-%: