From fc08e2f1cffbabdffea927e96c33ed6f91d521ce Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Thu, 10 Jun 2021 23:59:25 -0400 Subject: [PATCH] FIX make script not run on headless --- .chezmoiignore | 4 ++-- ...-packages.sh => run_once_after_10_install-packages.sh.tmpl | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) rename run_once_after_10_install-packages.sh => run_once_after_10_install-packages.sh.tmpl (97%) diff --git a/.chezmoiignore b/.chezmoiignore index 7f01155..4ab8ba5 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,8 +1,8 @@ {{- if ne .chezmoi.hostname "petrucci4prez" }} .bin -.config -!.config/private_gnupg +.config/** +!.config/gnupg !.config/python !.config/zsh .config/zsh/dot_zprofile diff --git a/run_once_after_10_install-packages.sh b/run_once_after_10_install-packages.sh.tmpl similarity index 97% rename from run_once_after_10_install-packages.sh rename to run_once_after_10_install-packages.sh.tmpl index d384750..08b186e 100644 --- a/run_once_after_10_install-packages.sh +++ b/run_once_after_10_install-packages.sh.tmpl @@ -11,6 +11,7 @@ # Configuration is assumed to be handled elsewhere (for now) eg in etckeeper # or with ansible. +{{- if eq .chezmoi.hostname "petrucci4prez" }} clone_maybe () { if [ ! -d "$2" ]; then echo cloning git repo: "$1" @@ -69,3 +70,4 @@ run_stack_in_dir "$xmonad_dir" ## CLONE OTHER REPOS clone_maybe https://github.com/ndwarshuis/conky.git "$HOME/.config/conky" +{{- end }}