switch around the no-pull arg check
This commit is contained in:
parent
fb99e60ca9
commit
15e1b5990f
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ 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]
|
NO_PULL_ARGS = %w[--no-pull -h -? --help]
|
||||||
unless ENV["BOXEN_NO_PULL"] || NO_PULL_ARGS.any? { |arg| ARGV.include?(arg) }
|
unless ENV["BOXEN_NO_PULL"] ||
|
||||||
|
ARGV.any? { |arg| NO_PULL_ARGS.include?(arg) }
|
||||||
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