]> err.no Git - pwstore/commitdiff
Only run parse_command if run directly
authorTollef Fog Heen <tfheen@err.no>
Tue, 25 Feb 2014 12:38:49 +0000 (13:38 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 25 Feb 2014 16:57:00 +0000 (17:57 +0100)
pws.rb

diff --git a/pws.rb b/pws.rb
index 7a43e838cc917b7622435c13cbf3f712f9fd82ac..c4b6d1cca83aa49a98292eee0cf94ec42447f848 100755 (executable)
--- a/pws.rb
+++ b/pws.rb
@@ -986,7 +986,9 @@ def parse_command
   end
 end
 
-parse_command
+if __FILE__ == $0
+  parse_command
+end
 
 # vim:set shiftwidth=2:
 # vim:set et: