helm/vcs/hg/install

16 lines
323 B
Plaintext
Raw Normal View History

2016-10-19 07:56:37 -07:00
#!/bin/bash
command -v hg >/dev/null && exit
case "$OSTYPE" in
darwin*)
brew install mercurial
;;
linux*)
if [ -f /etc/arch-release ]; then
sudo pacman --noconfirm -S mercurial
elif [ -f /etc/debian-version ]; then
sudo apt-get -y mercurial
fi
esac