diff options
author | P. 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) |
commit | 8099ca78b6005cba966067df05a0165d850c4623 (patch) | |
tree | f5cfbdb59347ac698e5aea6c3cbffdceb6cd866f /src | |
parent | ed68826e86a0e6c228203157d30fbea37aca32c4 (diff) |
Write function 'invalid_pkg_name()'.
Diffstat (limited to 'src')
-rw-r--r-- | src/oh-gencontrol | 6 |
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 |