commit 6e49a93b6588c2f7eecd8b8889f442ec7bf8de4a
parent d8c68657434b348f771a5fd1fb3cb73c705689c7
Author: Matt Demanett <matt@demanett.net>
Date: Mon, 10 Aug 2020 23:06:33 -0400
Fix for files that do not exist.
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/scripts/open_module.rb b/scripts/open_module.rb
@@ -42,12 +42,11 @@ def open(d, f)
afn = File.absolute_path(File.join(File.dirname($0), '..', d, f))
if File.readable?(afn)
puts "Open #{File.join(d, f)}..."
- end
-
- out = `open #{afn}`
- unless $?.success?
- STDERR.puts "open failed:\n#{out}"
- exit 1
+ out = `open #{afn}`
+ unless $?.success?
+ STDERR.puts "open failed:\n#{out}"
+ exit 1
+ end
end
end