summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-21 12:48:58 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-21 12:48:58 (EST)
commit8099ca78b6005cba966067df05a0165d850c4623 (patch)
treef5cfbdb59347ac698e5aea6c3cbffdceb6cd866f
parented68826e86a0e6c228203157d30fbea37aca32c4 (diff)
Write function 'invalid_pkg_name()'.
-rw-r--r--src/oh-gencontrol6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol
index 405c560..f7f3684 100644
--- a/src/oh-gencontrol
+++ b/src/oh-gencontrol
@@ -32,6 +32,12 @@ missing_field()
exit 2
}
+invalid_pkg_name()
+{
+ printf 'ERROR: Invalid package name: "%s"\n' "${1}" >&2
+ exit 2
+}
+
if [ ${#} -eq 0 ]; then
print_usage ${0} >&2
exit 1