bad style

This commit is contained in:
Sam 2014-06-19 15:51:08 +10:00
parent 0c2d346455
commit 457429ccf1

View File

@ -12,10 +12,7 @@ task 'docker:test' do
unless ENV['NO_UPDATE']
exit 1 unless run_or_fail("git remote update")
checkout = "master"
if hash = ENV['COMMIT_HASH']
checkout = hash
end
checkout = ENV['COMMIT_HASH'] || "master"
exit 1 unless run_or_fail("git checkout #{checkout}")
exit 1 unless run_or_fail("bundle")
end