_1password-gui: Use --replace-fail for substitutions (#424364)

authored by Austin Horstman and committed by GitHub 09657f8e 64e6bc2d

+2 -2
+2 -2
pkgs/by-name/_1/_1password-gui/linux.nix
··· 111 111 # Desktop file 112 112 install -Dt $out/share/applications resources/${pname}.desktop 113 113 substituteInPlace $out/share/applications/${pname}.desktop \ 114 - --replace 'Exec=/opt/1Password/${pname}' 'Exec=${pname}' 114 + --replace-fail 'Exec=/opt/1Password/${pname}' 'Exec=${pname}' 115 115 116 116 '' 117 117 + (lib.optionalString (polkitPolicyOwners != [ ]) '' 118 118 # Polkit file 119 119 mkdir -p $out/share/polkit-1/actions 120 - substitute com.1password.1Password.policy.tpl $out/share/polkit-1/actions/com.1password.1Password.policy --replace "\''${POLICY_OWNERS}" "${policyOwners}" 120 + substitute com.1password.1Password.policy.tpl $out/share/polkit-1/actions/com.1password.1Password.policy --replace-fail "\''${POLICY_OWNERS}" "${policyOwners}" 121 121 '') 122 122 + '' 123 123