ossp-pkg/shtool/sh.subst 1.5 -> 1.6
--- sh.subst 2002/02/23 09:18:03 1.5
+++ sh.subst 2003/02/11 12:56:40 1.6
@@ -42,11 +42,11 @@
# parameter consistency check
if [ $# -eq 0 -a ".$opt_b" != . ]; then
echo "$msgprefix:Error: option -b cannot be applied to stdin" 1>&2
- exit 1
+ shtool_exit 1
fi
if [ $# -eq 0 -a ".$opt_s" = .yes ]; then
echo "$msgprefix:Error: option -s cannot be applied to stdin" 1>&2
- exit 1
+ shtool_exit 1
fi
# build underlying sed(1) command
@@ -60,12 +60,12 @@
elif [ ".$opt_f" != . ]; then
if [ ! -f $opt_f ]; then
echo "$msgprefix:Error: command file \`$opt_f' not found or not a regular file" 1>&2
- exit 1
+ shtool_exit 1
fi
sedcmd="$sedcmd -f '$opt_f'"
else
echo "$msgprefix:Error: either -e option(s) or -f option required" 1>&2
- exit 1
+ shtool_exit 1
fi
# determine extension for original file
|
|