From 654770a4e51b697ae152ad3039eeac425e7ce21a Mon Sep 17 00:00:00 2001 From: Joshua Hull Date: Thu, 28 Jun 2012 11:03:13 -0700 Subject: [PATCH] Use File.expand_path to make path absolute. Use load instead of require to allow files without an extension to be loaded --- bin/stalk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/stalk b/bin/stalk index 4810f66..3b52345 100755 --- a/bin/stalk +++ b/bin/stalk @@ -9,9 +9,9 @@ usage = "stalk [[,,..]]" file = ARGV.shift or abort usage jobs = ARGV.shift.split(',') rescue nil -file = "./#{file}" unless file.match(/^[\/.]/) +file = File.expand_path(file) -require file +load file trap('INT') do puts "\rExiting"