Merge pull request #387 from boxen/pull_less
don't auto-update on some local-only operations
This commit is contained in:
commit
93e300a317
1 changed files with 3 additions and 2 deletions
|
@ -25,8 +25,9 @@ Dir.chdir Pathname.new(__FILE__).realpath + "../.."
|
||||||
|
|
||||||
# Auto-update code. This is done as early as possible so that changes
|
# Auto-update code. This is done as early as possible so that changes
|
||||||
# to boxen support code or dependencies can be grabbed.
|
# to boxen support code or dependencies can be grabbed.
|
||||||
|
NO_PULL_ARGS = %w[--no-pull -h -? --help] + [/-service/]
|
||||||
unless ENV["BOXEN_NO_PULL"] || ARGV.include?("--no-pull")
|
unless ENV["BOXEN_NO_PULL"] ||
|
||||||
|
ARGV.any? { |arg| NO_PULL_ARGS.any? { |no| arg.match(no) } }
|
||||||
quietly = "> /dev/null 2>&1"
|
quietly = "> /dev/null 2>&1"
|
||||||
|
|
||||||
if system("which git > /dev/null") && File.directory?(".git") \
|
if system("which git > /dev/null") && File.directory?(".git") \
|
||||||
|
|
Loading…
Reference in a new issue