avoid cloning xss-sanitize when clone already exists

This commit is contained in:
Joey Hess 2017-10-16 15:19:22 -04:00
parent c8cc32335f
commit 19f0f42cf3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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' \