summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-10-16 15:19:22 -0400
committerJoey Hess <joeyh@joeyh.name>2017-10-16 15:19:22 -0400
commit19f0f42cf3928a7285e2514abcb698d1c4f22797 (patch)
treed6c9f0595b9ff1dcd9223e9f063941238fe45e21
parentc8cc32335f66afdf9fa37f7eb089430e20de874a (diff)
avoid cloning xss-sanitize when clone already exists
-rwxr-xr-xstandalone/windows/build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh
index 01d53fc..e63fe11 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' \