From c5316e83185deda56844123d0760ba6da18347cc Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 1 Feb 2024 15:51:33 +0100 Subject: [PATCH] Add groups to autoinstall --- autoinstall/bashly.yml | 2 +- autoinstall/run_command.sh | 3 +-- autostart-manage/bashly.yml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/autoinstall/bashly.yml b/autoinstall/bashly.yml index 3a382ae..dfdcba5 100644 --- a/autoinstall/bashly.yml +++ b/autoinstall/bashly.yml @@ -1,6 +1,6 @@ name: autoinstall help: Install files, repository and else -version: 0.1.1 +version: 0.1.2 flags: - long: --clean diff --git a/autoinstall/run_command.sh b/autoinstall/run_command.sh index 7703daf..0bbc760 100644 --- a/autoinstall/run_command.sh +++ b/autoinstall/run_command.sh @@ -5,11 +5,10 @@ clean=${args[--clean]:-} _config_query() { tomlq -c --arg group "$group" \ - '.autoinstall | map(select(.group == $group)) | '"$1" \ + '.autoinstall | map(select(.groups + ["all"] | contains([$group]))) | '"$1" \ "$XDG_CONFIG_HOME/autoinstall.toml" } -#length=$(_config_query "length") _config_query ".[]" | while read -r entry; do install_args=() diff --git a/autostart-manage/bashly.yml b/autostart-manage/bashly.yml index 4c292bd..d042782 100644 --- a/autostart-manage/bashly.yml +++ b/autostart-manage/bashly.yml @@ -1,6 +1,6 @@ name: autostart-manage help: Manage autostart -version: 0.1.1 +version: 0.1.2 dependencies: tomlq: please install yq (https://github.com/kislyuk/yq)