summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorJoey Hess2015-04-02 10:25:35 -0400
committerJoey Hess2015-04-02 10:25:35 -0400
commit1413e9c61970532b846893ca6435f2a2785a1b02 (patch)
treef98f82feb8b7366e8cdaba8a6a08184b719c1b0b /src/Propellor/Bootstrap.hs
parentfd866242f033ee0a10a266b4707290e8976da560 (diff)
/dev/null any error from propellor --check
This includes "unknown option" from old versions of propellor..
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index b0b4e58a..a07347ed 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -27,7 +27,7 @@ bootstrapPropellorCommand = "if ! test -x ./propellor; then " ++ go ++ "; fi;" +
-- Use propellor --check to detect if the local propellor binary has
-- stopped working (eg due to library changes), and must be rebuilt.
checkBinaryCommand :: ShellCommand
-checkBinaryCommand = "if test -x ./propellor && ! ./propellor --check; then " ++ go ++ "; fi"
+checkBinaryCommand = "if test -x ./propellor && ! ./propellor --check 2>/dev/null; then " ++ go ++ "; fi"
where
go = intercalate " && "
[ "cabal clean"