Skip to content

Instantly share code, notes, and snippets.

@siassaj
Created November 23, 2016 15:54
Show Gist options
  • Select an option

  • Save siassaj/fee11c4635c41a68c3f70a1ef5e7e391 to your computer and use it in GitHub Desktop.

Select an option

Save siassaj/fee11c4635c41a68c3f70a1ef5e7e391 to your computer and use it in GitHub Desktop.
local CMD=$(cat <<-EOF
source /etc/profile.d/chruby.sh &&
chruby ruby-2.3.1 &&
cd /var/app/current/ &&
$SCRIPT
EOF
)
if [ "$USER" == $RUNAS ]; then
`$CMD`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment