summaryrefslogtreecommitdiff
path: root/ucf
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@golden-gryphon.com>2013-04-24 02:43:27 -0700
committerManoj Srivastava <srivasta@golden-gryphon.com>2013-04-24 02:43:27 -0700
commit73fb2c7fe48cec8f7f2a6b10ec5db7e0276e2727 (patch)
treefd94b2c2560b87f29e2ac9b2c43b34f05da56446 /ucf
parent335b441bd92114a3fc0465fcf7bb7f13c6262ce9 (diff)
[upstream]: Do not exit normally after errors.
Signed-off-by: Manoj Srivastava <srivasta@golden-gryphon.com>
Diffstat (limited to 'ucf')
-rwxr-xr-xucf4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucf b/ucf
index 6c70599..862f2ea 100755
--- a/ucf
+++ b/ucf
@@ -350,7 +350,7 @@ if [ "X$PURGE" = "XYES" ]; then
echo >&2 "*** ERROR: Need exactly one argument when purging, got $#";
echo >&2 ""
usageversion;
- exit 0 ;
+ exit 2 ;
fi
temp_dest_file=$1;
setq dest_file "$(readlink -q -m $temp_dest_file)" "The Destination file";
@@ -359,7 +359,7 @@ else
echo >&2 "*** ERROR: Need exactly two arguments, got $#";
echo >&2 ""
usageversion;
- exit 0 ;
+ exit 2 ;
fi
temp_new_file=$1;
temp_dest_file=$2;