diff --git a/new_problem b/new_problem --- a/new_problem +++ b/new_problem @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # new_problem: # * creates a directory for a problem in the current directory, diff --git a/templates/check_wrapper b/templates/check_wrapper --- a/templates/check_wrapper +++ b/templates/check_wrapper @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # # This is a check script wrapper. It read all required information diff --git a/test/data/ev/test_memory/script/check b/test/data/ev/test_memory/script/check --- a/test/data/ev/test_memory/script/check +++ b/test/data/ev/test_memory/script/check @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby problem_home = ENV['PROBLEM_HOME'] require "#{problem_home}/script/test_dsl.rb" diff --git a/test/data/ev/test_normal/script/check b/test/data/ev/test_normal/script/check --- a/test/data/ev/test_normal/script/check +++ b/test/data/ev/test_normal/script/check @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby problem_home = ENV['PROBLEM_HOME'] require "#{problem_home}/script/test_dsl.rb" diff --git a/test/data/ev/test_timeout/script/check b/test/data/ev/test_timeout/script/check --- a/test/data/ev/test_timeout/script/check +++ b/test/data/ev/test_timeout/script/check @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby problem_home = ENV['PROBLEM_HOME'] require "#{problem_home}/script/test_dsl.rb" diff --git a/test/data/ev/test_yesno/script/check b/test/data/ev/test_yesno/script/check --- a/test/data/ev/test_yesno/script/check +++ b/test/data/ev/test_yesno/script/check @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby problem_home = ENV['PROBLEM_HOME'] require "#{problem_home}/script/test_dsl.rb" diff --git a/test/data/test_request/problems/test_normal/script/check b/test/data/test_request/problems/test_normal/script/check --- a/test/data/test_request/problems/test_normal/script/check +++ b/test/data/test_request/problems/test_normal/script/check @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby problem_home = ENV['PROBLEM_HOME'] require "#{problem_home}/script/test_dsl.rb"