# HG changeset patch # User Waitaya Krongapiradee # Date 2014-12-31 11:44:12 # Node ID 6f1fd9fdb8acbb7ab66f6e09fed47684a3a97a9c # Parent f1e28e7f872ccb3702451e6523641116556124de Changed shebang from `/usr/bin/ruby` to `/usr/bin/env ruby` 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"