Unverified Commit 128267c4 authored by Jacek Galowicz's avatar Jacek Galowicz Committed by GitHub
Browse files

nixos/run0: add a shebang to the run0 sudo-alias script (#483795)

parents c6130997 85d1295e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
let
  cfg = config.security.run0;

  sudoAlias = pkgs.writeScriptBin "sudo" ''
  sudoAlias = pkgs.writeShellScriptBin "sudo" ''
    if [[ "$1" == -* ]]; then
      echo "This script is a sudo-alias to systemd's run0 and does not support any sudo parameters."
      exit 1