From 9959ad1a146f77fa310329802b567b9132fc15cc Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 15 Dec 2009 04:32:41 +0000 Subject: [PATCH] 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 --- icom | 1 + icom-dir | 1 + 2 files changed, 2 insertions(+) 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() -- 2.11.0