Closed NikitaMGrimm closed 1 year ago
In the verbose output, you can see that the #! line is not correct:
#!/bin/bash# hyprland config hash: f40bd8cd3ae9ed71db3f678db49a5ab6ca78c29b80b47e8f59677575444e5efa
You need a newline after #!/bin/bash
. The {{-
on line 3 of your script removes all the previous whitespace. Use {{
instead.
Thank you very much :) Have a great day.
What exactly are you trying to do?
I am trying to make a script run on change of the hyprland config file.
This is the current script:
The name of the script is
run_onchange_before_reload-hyprland.sh.tmpl
and it is currently in my.chezmoiscripts
directory which is located at~/.local/share/chezmoi/home/.chezmoiscripts
If I do
chezmoi diff
after I change the hyprland config, I can see that the hash value changes correctly. Without the template, the commands in the script also seem to run fine if I start it manually.But if I do
chezmoi apply
, then I get this error:fork/exec /tmp/XXXXXXXXX.reload-hyprland.sh: no such file or directory
What have you tried so far?
I tried to move the script to the root of chezmoi. I tried to only apply the script changes
chezmoi apply --include scripts
I tried to change the script to abefore
script.Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context