aboutsummaryrefslogtreecommitdiffstats
path: root/tests/nixos-rebuild.sh
blob: 9e2e47e066a4e2ca7d8b33b91305cd2cce5e6226 (plain)
1
2
3
4
5
6
7
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