Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Change routing_parse_init() into routing_add_host()
[simgrid.git] / tools / stack-cleaner / as
index dcdb491..46446cb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # Wrapper around the real `as` which adds filtering capabilities.
 
 require "tempfile"
@@ -35,7 +35,9 @@ def wrapped_as(argv)
 
   # Generate temp file
   tempfile = Tempfile.new("as-filter")
-  unless system(File.dirname($0) + "/clean-stack-filter", 0 => input, 1 => tempfile)
+  tempfile.close
+  script = File.dirname($0) + "/clean-stack-filter"
+  unless system([script, script], 0 => input, 1 => tempfile.path)
     status=$?.exitstatus
     FileUtils.rm tempfile
     exit status