Skip to content

Commit

Permalink
nixos/printers: 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/a3mk99mgl10a4k3maxx361hdli5p2rip-unit-script-ensure-printers-start/bin/ensure-printers-start line 6:
> /nix/store/26fb46gwc5sbd045nj3dxw4zqpml359i-cups-2.4.11/bin/lpadmin -D 'virtual printer for cups-pdf instance pdf' -L '/var/spool/cups-pdf-pdf/users/${USER}' -m CUPS-PDF_opt.ppd -p pdf -v cups-pdf:/pdf -E
>                                                                                                                       ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
  • Loading branch information
l0b0 committed Jan 4, 2025
1 parent a1945f7 commit 6bb5aa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/hardware/printers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let
);
in
''
# shellcheck disable=SC2016
${pkgs.cups}/bin/lpadmin ${args} -E
'';

Expand Down

0 comments on commit 6bb5aa2

Please sign in to comment.