From: fredrik Date: Tue, 15 Dec 2009 04:32:41 +0000 (+0000) Subject: Exit properly on errors in icom. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=9959ad1a146f77fa310329802b567b9132fc15cc;hp=cbdc054a5abdbe2f2275bb9a52f422cb31dd40b2;p=utils.git Exit properly on errors in icom. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1124 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/icom b/icom index 1b2bdb5..3800ea7 100755 --- a/icom +++ b/icom @@ -4,6 +4,7 @@ import sys if len(sys.argv) < 3: sys.stderr.write("usage: icom FILE1 FILE2\n") + sys.exit(1) tsz = (25, 25) diff --git a/icom-dir b/icom-dir index 7565651..bcdb31a 100755 --- a/icom-dir +++ b/icom-dir @@ -10,6 +10,7 @@ def combine(list): if len(sys.argv) < 2: sys.stderr.write("usage: icom-dir DIRECTORY\n") + sys.exit(1) files = os.listdir(sys.argv[1]) files.sort()