summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'instruby.rb')
-rwxr-xr-xinstruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb
index 9b07951e89..8380df41fb 100755
--- a/instruby.rb
+++ b/instruby.rb
@@ -275,7 +275,7 @@ install?(:local, :comm, :bin) do
shebang = f.gets
body = f.read
- if shebang.sub!(/^\#!.*?ruby\b/) {"#!" + ruby_shebang}
+ if shebang.sub!(/^\#!.*?ruby\b/, "#!" + ruby_shebang)
f.rewind
f.print shebang, body
f.truncate(f.pos)