From 0fbabdfdf60fff12ab6618ca6bb4d27886cf9584 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 10 Jul 1997 04:05:32 +0000 Subject: [PATCH] Check arguments. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2122 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/com_err/compile_et.in | 5 +++++ lib/error/compile_et.in | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/com_err/compile_et.in b/lib/com_err/compile_et.in index 568e6f9dc..df1d12cb6 100755 --- a/lib/com_err/compile_et.in +++ b/lib/com_err/compile_et.in @@ -2,6 +2,11 @@ file=@srcdir@/compile_et.awk +if [ $# != 1 ]; then + echo "Usage: compile_et file.et" + exit 1 +fi + if [ ! -f $file ]; then echo "compile_et: File not found: $file" exit 1 diff --git a/lib/error/compile_et.in b/lib/error/compile_et.in index 568e6f9dc..df1d12cb6 100755 --- a/lib/error/compile_et.in +++ b/lib/error/compile_et.in @@ -2,6 +2,11 @@ file=@srcdir@/compile_et.awk +if [ $# != 1 ]; then + echo "Usage: compile_et file.et" + exit 1 +fi + if [ ! -f $file ]; then echo "compile_et: File not found: $file" exit 1