From 56a5538e8ca96dd963af8c84ddc9fa1342fdcde6 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 23 Nov 2019 17:03:08 -0800 Subject: Print the nix log on bild failure --- bild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bild b/bild index 36d8917..5466d52 100755 --- a/bild +++ b/bild @@ -1,2 +1,8 @@ #!/usr/bin/env bash nix build -f default.nix "$@" +if [[ $? != 0 ]] +then + echo ":: bild fail" + echo ":: replaying the log..." + PAGER=cat nix log -f default.nix "$@" +fi -- cgit v1.2.3