nixos/go-camo: fix shellcheck findings with enableStrictShellChecks enabled (#349557)

This commit is contained in:
Stanisław Pitucha
2024-10-19 06:22:18 +11:00
committed by GitHub
@@ -55,7 +55,8 @@ in
GOCAMO_HMAC_FILE = "%d/hmac";
};
script = ''
export GOCAMO_HMAC=$(cat "$GOCAMO_HMAC_FILE")
GOCAMO_HMAC="$(cat "$GOCAMO_HMAC_FILE")"
export GOCAMO_HMAC
exec ${lib.escapeShellArgs(lib.lists.remove "" ([ "${pkgs.go-camo}/bin/go-camo" cfg.listen cfg.sslListen cfg.sslKey cfg.sslCert ] ++ cfg.extraOptions))}
'';
serviceConfig = {