Skip to content

Commit

Permalink
fuck you debian
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Mar 25, 2024
1 parent 9a3c458 commit 6b34aa6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make.d/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ 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)))

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-%:
Expand Down

0 comments on commit 6b34aa6

Please sign in to comment.