From 0e744637b792a06eea0ea79aba2eeaf067b7e7ad Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Tue, 4 Jun 2024 17:51:38 +0200 Subject: [PATCH] Update .chezmoidata/packages.yaml Update update_packagelist.sh --- .chezmoidata/packages.yaml | 1 + run_after_update_packagelist.sh.tmpl | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.chezmoidata/packages.yaml b/.chezmoidata/packages.yaml index e051609..6904799 100644 --- a/.chezmoidata/packages.yaml +++ b/.chezmoidata/packages.yaml @@ -18,6 +18,7 @@ packages: - git - gmp - icu4c + - jless - jq - jsoncpp - libgit2 diff --git a/run_after_update_packagelist.sh.tmpl b/run_after_update_packagelist.sh.tmpl index e040770..1194cf3 100644 --- a/run_after_update_packagelist.sh.tmpl +++ b/run_after_update_packagelist.sh.tmpl @@ -1,5 +1,7 @@ #!/bin/bash +# packages.yaml hash: {{ include ".chezmoidata/packages.yaml" | sha256sum }} + # Generate the list of installed brew packages brews=$(brew list --formula | awk '{print " - "$1}') @@ -7,12 +9,11 @@ brews=$(brew list --formula | awk '{print " - "$1}') casks=$(brew list --cask | awk '{print " - "$1}') # Print the output in the desired format -cat < {{ .chezmoi.sourceDir }}/.chezmoidata/packages.yaml packages: darwin: brews: $brews casks: $casks -EOF > {{ .chezmoi.sourceDir }}/.chezmoidata/packages.yaml - +EOF