summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorJoey Hess2017-04-09 17:20:08 -0400
committerJoey Hess2017-04-09 17:20:08 -0400
commitc25bf31c9438aedfe34ee3d870d8a6ef58767a68 (patch)
tree026eac7845ec2f64726f28f7e3e23e30b19a4a36 /src/Propellor/Bootstrap.hs
parente976032e98788907052cae09be639a99d25de0d1 (diff)
avoid "sh: 1: git: not found" before auto-install of git
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 9d2d603d..29c55213 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -144,7 +144,7 @@ installGitCommand msys = case msys of
-- assume a debian derived system when not specified
Nothing -> use apt
where
- use cmds = "if ! git --version >/dev/null; then " ++ intercalate " && " cmds ++ "; fi"
+ use cmds = "if ! git --version >/dev/null 2>&1; then " ++ intercalate " && " cmds ++ "; fi"
apt =
[ "apt-get update"
, "DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends --no-upgrade -y install git"