#!/usr/bin/env ruby-2.5

# This script lets you run `bundle exec` in one directory, and then changes into another.

warn "PID #{Process.pid} BUNDLE_GEMFILE=#{ENV['BUNDLE_GEMFILE']}"

Dir.chdir(ARGV.shift)
exec(*ARGV)
