Skip to content

Commit

Permalink
switch around the no-pull arg check
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed Aug 25, 2013
1 parent fb99e60 commit 15e1b59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/boxen
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Dir.chdir Pathname.new(__FILE__).realpath + "../.."
# Auto-update code. This is done as early as possible so that changes
# to boxen support code or dependencies can be grabbed.
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"

if system("which git > /dev/null") && File.directory?(".git") \
Expand Down

0 comments on commit 15e1b59

Please sign in to comment.