From 250a448259aff5a5ba138132957c25d9c1a301ad Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Sat, 4 Jan 2025 14:10:11 +0100 Subject: [PATCH] nixos/tzupdate: Fix ShellCheck issue 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. --- nixos/modules/services/misc/tzupdate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/tzupdate.nix b/nixos/modules/services/misc/tzupdate.nix index 17868e1c1171..188ef95e185d 100644 --- a/nixos/modules/services/misc/tzupdate.nix +++ b/nixos/modules/services/misc/tzupdate.nix @@ -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 = {