diff --git a/tools/anvil-access-module b/tools/anvil-access-module index 0778caa3..86284eeb 100755 --- a/tools/anvil-access-module +++ b/tools/anvil-access-module @@ -524,10 +524,12 @@ else my $script_file_handle; eval { - if ($script_file =~ /^#!SET!#|-$/) - { - $script_file = "-"; + # TODO: make this script read piped input + + $script_file = "-" if ($script_file =~ /^#!SET!#$/); + if ($script_file =~ /^-$/) + { open($script_file_handle, $script_file); } else