From a9ac0a11b600e8ffcd5e344aebf984f6078ab4e5 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Sun, 11 Sep 2011 14:59:32 -0400 Subject: [PATCH] Fix up scaffold.sh Use bash -e instead of single pipeline Unregister foobar after testing it --- yesod/test/scaffold.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/yesod/test/scaffold.sh b/yesod/test/scaffold.sh index 34798202..303a9656 100755 --- a/yesod/test/scaffold.sh +++ b/yesod/test/scaffold.sh @@ -1,3 +1,12 @@ -#!/bin/bash -x +#!/bin/bash -ex -rm -rf foobar && runghc main.hs init && cd foobar && cabal install && cabal install -fdevel && cd .. +rm -rf foobar +runghc main.hs init + +( + cd foobar + cabal install + cabal install -fdevel +) + +ghc-pkg unregister foobar