blob: ec0c85c22e4a4aae358d2d4c5e88fb3a6c43629b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#! /bin/sh
# Stands in for nixos-rebuild: records the user it runs as, NIX_PATH, its
# arguments, and whether its output is a terminal in /tmp/nixos-rebuild.log.
if test -t 1; then terminal=terminal; else terminal='no terminal'; fi
{
id -u
printf '%s\n' "${NIX_PATH-}"
printf '%s\n' "$*"
echo "$terminal"
} > /tmp/nixos-rebuild.log
|