Sha256: 583d525f81c697d6c6066740141647e36dfa52e62150ac5c9c889e3666392f5a
Contents?: true
Size: 639 Bytes
Versions: 5
Compression:
Stored size: 639 Bytes
Contents
#!/usr/bin/env bash # Install bosh-cloudfoundry BOSH CLI plugin # # Options: # * $UPGRADE - re-install or upgrade gems if already installed set -e # exit immediately if a simple command exits with a non-zero status if [[ $EUID -ne 0 ]]; then echo "ERROR: This script must be run as root" 1>&2 exit 1 fi # Install a gem if $UPGRADE exists or if gem not already installed function install_gem() { gem_name=$1 if [[ ("${UPGRADE}X" != "X") || "$(gem list $gem_name | grep $gem_name)X" == "X" ]]; then gem install $gem_name --no-ri --no-rdoc else echo gem $gem_name already installed fi } install_gem bosh-cloudfoundry
Version data entries
5 entries across 5 versions & 1 rubygems