From ff8cb93fe7ab8bb3786a81fc9017154defff3506 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Tue, 26 May 2015 17:11:29 +0200
Subject: [PATCH] reproduce.tt: Wrap script to prevent problems piping into
 bash

---
 src/root/reproduce.tt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/root/reproduce.tt b/src/root/reproduce.tt
index 161ea2ab..41316ce6 100644
--- a/src/root/reproduce.tt
+++ b/src/root/reproduce.tt
@@ -1,5 +1,7 @@
 #! /usr/bin/env bash
 
+main() {
+
 # This script has been generated automatically by Hydra from the build
 # at [% c.uri_for('/build' build.id) %].
 
@@ -211,3 +213,7 @@ info "running nix-build..."
 echo "using these flags: ${args[@]}" >&2
 
 exec nix-build "${args[@]}" "${extraArgs[@]}"
+
+}
+
+main