Skip to content

Commit

Permalink
nixos/tzupdate: Fix ShellCheck issue
Browse files Browse the repository at this point in the history
Fixes the following warning when setting
`systemd.enableStrictShellChecks = true`:

> In /nix/store/lbzbwz5w0r7rn1m2h3cwa57nfs0xy6dd-unit-script-tzupdate-start/bin/tzupdate-start line 6:
> timedatectl set-timezone $(/nix/store/q9bahab38yvn2lr3r3sdkvlnkg1rkzng-tzupdate-3.1.0/bin/tzupdate --print-only)
>                          ^-- SC2046 (warning): Quote this to prevent word splitting.
  • Loading branch information
l0b0 committed Jan 4, 2025
1 parent a1945f7 commit 250a448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/tzupdate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ in {
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
script = ''
timedatectl set-timezone $(${lib.getExe pkgs.tzupdate} --print-only)
timedatectl set-timezone "$(${lib.getExe pkgs.tzupdate} --print-only)"
'';

serviceConfig = {
Expand Down

0 comments on commit 250a448

Please sign in to comment.