Merge pull request #885 from mcsaucy/patch-1

Make nix-build args copy-pastable via `set -x`
This commit is contained in:
Graham Christensen 2021-03-07 08:14:49 -05:00 committed by GitHub
commit 1f4183e05f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,10 +210,9 @@ if [ -n "$printFlags" ]; then
fi
info "running nix-build..."
echo "using these flags: ${args[@]}" >&2
exec nix-build "${args[@]}" "${extraArgs[@]}"
echo "using the following invocation:" >&2
set -x
nix-build "${args[@]}" "${extraArgs[@]}"
}
main "$@"