ITADN

Script module fails when there are only snippets

#549Openflexagoon 创建于 2026-02-10
F
flexagooncommented
In [my recipe](https://github.com/flexagoon/fxBlue/blob/main/recipes/recipe.yml) the script module config is: ```yaml - type: script snippets: - echo "Hidden=true" | tee -a /usr/share/applications/{nvidia-settings,fish,nvim}.desktop - ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld ``` The module fails because the `files/scripts` directory doesn't exist: https://github.com/flexagoon/fxBlue/actions/runs/21859265926/job/63083753262 ``` [09:33:46 g.i/f/fxblue:latest] => #63 0.072 ============================ Start 'script' Module ============================ [09:33:46 g.i/f/fxblue:latest] => #63 0.100 Error: nu::shell::io::directory_not_found [09:33:46 g.i/f/fxblue:latest] => #63 0.101 [09:33:46 g.i/f/fxblue:latest] => #63 0.101 × Directory not found [09:33:46 g.i/f/fxblue:latest] => #63 0.101 ╭─[/tmp/modules/script/script.nu:10:6] [09:33:46 g.i/f/fxblue:latest] => #63 0.101 9 │ let script_dir = [$env.CONFIG_DIRECTORY scripts] | path join [09:33:46 g.i/f/fxblue:latest] => #63 0.101 10 │ cd $script_dir [09:33:46 g.i/f/fxblue:latest] => #63 0.101 · ─────┬───── [09:33:46 g.i/f/fxblue:latest] => #63 0.102 · ╰── Directory not found [09:33:46 g.i/f/fxblue:latest] => #63 0.102 11 │ glob ./**/*{.sh,.nu,.py} [09:33:46 g.i/f/fxblue:latest] => #63 0.102 ╰──── [09:33:46 g.i/f/fxblue:latest] => #63 0.102 help: '/tmp/files/scripts' does not exist [09:33:46 g.i/f/fxblue:latest] => #63 0.102 [09:33:46 g.i/f/fxblue:latest] => #63 0.105 ============================ Failed 'script' Module ============================ ```
0 条评论