Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Arc Setup (Ubuntu)
if ! hash git &> /dev/null || ! hash php &> /dev/null; then
echo -e " *****\n ***** INSTALLING GIT AND PHP\n *****"
if hash apt-get &> /dev/null; then
sudo apt-get install git-core php5-cli php5-curl
elif hash port &> /dev/null; then
sudo port install php5-curl
elif hash fink &> /dev/null; then
sudo fink install git php5-curl
elif hash yum &> /dev/null; then
sudo yum install git php-curl
if [ ! -d ~/.arc_install ]; then
echo -e " *****\n ***** CLONING THE ARC TOOL\n *****"
mkdir ~/.arc_install
git clone git:// ~/.arc_install/libphutil
git clone git:// ~/.arc_install/arcanist
echo -e " *****\n ***** UPDATING ARC\n *****"
pushd ~/.arc_install/libphutil/ > /dev/null
git pull
cd ~/.arc_install/arcanist/
git pull
popd > /dev/null
if [ ! -f ~/.arcrc ]; then
~/.arc_install/arcanist/bin/arc install-certificate
if ! hash arc &> /dev/null; then
echo -e "\n******************************************************\n"
echo " Add \"~/.arc_install/arcanist/bin\" to your path"
echo -e "\n******************************************************"
Copy link

andrask commented Apr 22, 2015

Great script, thanks!

Copy link

snowdream commented Aug 3, 2016

i can not connect to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment