aboutsummaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-10-16 15:19:22 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-10-16 15:19:22 -0400
commitf78ec38065929d02bb4521ae4cd92c32618e0490 (patch)
tree77a2fa3e46d9ff45e7597e81d986280ea694d73d /standalone
parent51ed4eb98b08c08c2244fbe2bd59d05d8ff4031d (diff)
avoid cloning xss-sanitize when clone already exists
Diffstat (limited to 'standalone')
-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 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' \