I came around this
With the following command for shell:
curl https://raw.github.com/visionmedia/git-extras/master/bin/git-extras | INSTALL=y sh
Which results in:
mkdir: cannot create directory `/share': Permission denied
make: *** [install] Error 1
No manual entry for git-extras
I am curious to know about this piping for 'INSTALL', which my short googling I only found the example in this github. I would like to know how it could be run with sudo
and a reference to this sort of piping.
INSTALL=y sh
means to run the sh
program with the environment variable INSTALL
set to y
. You can use sudo as follows:
curl https://raw.github.com/visionmedia/git-extras/master/bin/git-extras | sudo INSTALL=y sh