diff options
Diffstat (limited to 'tests/nixos-rebuild.sh')
| -rwxr-xr-x | tests/nixos-rebuild.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/nixos-rebuild.sh b/tests/nixos-rebuild.sh new file mode 100755 index 0000000..9e2e47e --- /dev/null +++ b/tests/nixos-rebuild.sh @@ -0,0 +1,8 @@ +#! /bin/sh +# Stands in for nixos-rebuild: records the user it runs as, NIX_PATH, and its +# arguments in /tmp/nixos-rebuild.log. +{ + id -u + printf '%s\n' "${NIX_PATH-}" + printf '%s\n' "$*" +} > /tmp/nixos-rebuild.log |
