Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created August 17, 2015 11:39
Show Gist options
  • Save VerosK/bd232bd190fdb93757bb to your computer and use it in GitHub Desktop.
Save VerosK/bd232bd190fdb93757bb to your computer and use it in GitHub Desktop.
Install fpm to local dir
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