mercurial 262 Bytes
Newer Older
Kenneth Reitz's avatar
Kenneth Reitz committed
1 2
#!/usr/bin/env bash

3
# Install Mercurial if it appears to be required.
Kenneth Reitz's avatar
Kenneth Reitz committed
4 5
if [[ -f "requirements.txt" ]]; then
	if (grep -Fiq "hg+" requirements.txt) then
6
		"$BUILD_DIR/.heroku/python/bin/pip" install  mercurial | cleanup | indent
7
		mcount "steps.mercurial"
Kenneth Reitz's avatar
Kenneth Reitz committed
8
	fi
Ed Morley's avatar
Ed Morley committed
9
fi