Created
August 17, 2015 11:39
-
-
Save VerosK/bd232bd190fdb93757bb to your computer and use it in GitHub Desktop.
Install fpm to local dir
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
GEM=fpm | |
BINARY=fpm | |
GEM_HOME=${HOME}/bin/${GEM}.gem/ | |
mkdir -p $GEM_HOME | |
GEM_HOME=$GEM_HOME gem install --verbose ${GEM} | |
cat > ${HOME}/bin/${BINARY} <<EOF | |
#!/bin/bash | |
# this is wrapper | |
exec env GEM_HOME=${GEM_HOME} ${GEM_HOME}/bin/${BINARY} \$\* | |
EOF | |
chmod +x ${HOME}/bin/${BINARY} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment