Last active
December 30, 2015 08:29
-
-
Save amercier/7803233 to your computer and use it in GitHub Desktop.
bash <(curl -# -L https://gist.github.com/amercier/7803233/raw)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ "`whoami`" != "root" ]; then | |
echo "You must execute this script as root" >&2 | |
exit 1 | |
fi | |
echo ".--------------------------." | |
echo "| git-subtree installation |" | |
echo "'--------------------------'" | |
which git >/dev/null 2>&1 || aptitude install git | |
git --version | |
curl -# https://raw.github.com/apenwarr/git-subtree/master/git-subtree.sh -o /usr/lib/git-core/git-subtree \ | |
&& chmod 755 /usr/lib/git-core/git-subtree \ | |
&& ls -al /usr/lib/git-core/git-subtree \ | |
&& echo ".------------------------------------." \ | |
&& echo "| git-subtree installed successfully |" \ | |
&& echo "'------------------------------------'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment