From f78ec38065929d02bb4521ae4cd92c32618e0490 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Oct 2017 15:19:22 -0400 Subject: avoid cloning xss-sanitize when clone already exists --- standalone/windows/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'standalone') diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh index 01d53fc46..e63fe11e1 100755 --- a/standalone/windows/build.sh +++ b/standalone/windows/build.sh @@ -40,8 +40,10 @@ rm -f git-annex-installer.exe cabal update || true # workaround strange cabal install bug for xss-sanitize -git clone https://github.com/yesodweb/haskell-xss-sanitize xss-sanitize -(cd xss-sanitize && cabal install) +if [ ! -d xss-sanitize ]; then + git clone https://github.com/yesodweb/haskell-xss-sanitize xss-sanitize + (cd xss-sanitize && cabal install) +fi cabal install --only-dependencies \ --constraint='persistent-sqlite ==2.2' \ -- cgit v1.2.3