Skip to content

Instantly share code, notes, and snippets.

@zerowidth zerowidth/build.sh
Last active Jan 4, 2016

Embed
What would you like to do?
stripe ctf level 3 loves ruby
#!/bin/sh
set -e
# Add or modify any build steps you need here
cd "$(dirname "$0")"
ruby --version
mkdir -p ./gems
gem install bundler --install-dir=./gems
export GEM_HOME=./gems
./gems/bin/bundler install
ruby test.rb
#!/bin/sh
set -eu
set -x
if `which bundle`;
then
ruby app.rb $@
else
GEM_HOME=./gems ruby app.rb $@
fi
require "rubygems"
require "bundler/setup"
require "sinatra/base"
STDERR.puts "ALL GOOD YO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.