-
trying setup some scripts in chezmoi to inall some common packages I use on on atomic fedora but its complaining about a bad character.
so far I have (taken from https://www.chezmoi.io/user-guide/advanced/install-packages-declaratively/) ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: .chezmoidata/packages.yaml
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ packages:
2 │ rpm-tree:
3 │ - applet-window-buttons
4 │ - krdp
5 │ - kvantum
6 │ pip:
7 │ - solaar
8 │ - organize-tool
9 │ cargo:
10 │ - cargo-install-update
11 │ - clipboard-sync
12 │ fisher:
13 │ - jorgebucaran/fisher
14 │ - ajeetdsouza/zoxide
15 │ - ilancosman/tide@v6
16 │ - jorgebucaran/autopair.fish
17 │ - joseluisq/[email protected]
18 │ - franciscolourenco/done
19 │ - edc/bass
20 │ - patrickf1/colored_man_pages.fish
21 │ - b4b4r07/enhancd
22 │ - jethrokuan/fzf
23 │ - oh-my-fish/plugin-sudope
24 │
and ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: run_onchange_install-packages.sh.tmpl
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ #!/bin/bash
2 │ if command -v rpm-ostree >/dev/null; then
3 │ {{ range .packages.rpm-tree -}}
4 │ sudo rpm-ostree install {{ . | quote }}
5 │ {{ end -}}
6 │ fi
7 │ {{ range .packages.pip -}}
8 │ pip install -- user {{ . | quote }}
9 │ {{ end -}}
10 │ {{ range .packages.cargo -}}
11 │ cargo install {{ . | quote }}
12 │ {{ end -}}
13 │ {{ range .packages.fisher -}}
14 │ fisher install {{ . | quote }}
15 │ {{ end -}}
16 │ EOF
17 │ {{ end -}}
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── |
Beta Was this translation helpful? Give feedback.
Answered by
zany130
Aug 13, 2024
Replies: 1 comment 15 replies
-
Is your YAML file valid? I suspect that you might have an invalid hyphen-like character in there. |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🤦 the issue was the name of my rpm-tree category specficcly the
-
inrpm-tree
renamed it torpmtree
in both files and it workedalso for good measure I wrapped all the
- package name
with single quotes just in caseedit cool and my if statement also works!
the end result is this