Browse files

Alter shebang and add encoding comment.

We use ‘env’ to find ‘ruby’ so that it is still found if installed outside ‘/usr/bin’ (presuming its location is listed in the PATH environment variable).

Since not all implementations of ‘env’ support additional arguments to the executable we wish to run, there now is an encoding comment to replace the -KU argument (for ruby 1.9).
  • Loading branch information...
1 parent a7929a2 commit f9b1ddd061ca8350c249c12fb7af4c0711346756 @sorbits sorbits committed Oct 28, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 rmate
View
4 rmate
@@ -1,4 +1,6 @@
-#!/usr/bin/ruby -wKU
+#!/usr/bin/env ruby
+# encoding: UTF-8
+
require 'optparse'
require 'socket'
require 'fileutils'

0 comments on commit f9b1ddd

Please sign in to comment.