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 fi
info "running nix-build..." info "running nix-build..."
echo "using these flags: ${args[@]}" >&2 echo "using the following invocation:" >&2
set -x
exec nix-build "${args[@]}" "${extraArgs[@]}" nix-build "${args[@]}" "${extraArgs[@]}"
} }
main "$@" main "$@"