Skip to content

#8b027f0 breaks install.sh on Amazon Linux #9

Description

@pdehlke

I confess that I do not understand this line, and I haven't been able to work out what chezmoi is doing here:

# {{ .chezmoi.osRelease.name }} - {{ .chezmoi.osRelease.versionCodename }}

But this line causes it to abort on Amazon Linux, and thus the install fails.

Happy to work on a PR if you can point me in the right direction.

pete@ip-10-0-101-200 ~]$ uname -a
Linux ip-10-0-101-200.ec2.internal 4.14.352-268.568.amzn2.aarch64 #1 SMP Tue Sep 24 10:00:34 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
[pete@ip-10-0-101-200 ~]$ sh -c "`curl -fsSL https://github.com/nandalopes/dotfiles/raw/main/root/bin/yadr/install.sh`"

...

chezmoi: .chezmoiscripts/post_install_yadr.sh: template: .chezmoiscripts/run_onchange_after_post_install_yadr.sh.tmpl:16:45: executing ".chezmoiscripts/run_onchange_after_post_install_yadr.sh.tmpl" at <.chezmoi.osRelease.versionCodename>: map has no entry for key "versionCodename"
[pete@ip-10-0-101-200 ~]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions