diff options
author | Michael Scherer <misc@mageia.org> | 2011-07-20 10:50:37 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-07-20 10:50:37 +0000 |
commit | 11f9e73096c425dfb1ad117442b099a27ac300c0 (patch) | |
tree | 2e91221c3b756d66de6805dbc59ca173339037d1 /modules/buildsystem/templates | |
parent | e0c11972fc47ff2433eb5b5c6e2b686d3378c174 (diff) | |
download | puppet-11f9e73096c425dfb1ad117442b099a27ac300c0.tar puppet-11f9e73096c425dfb1ad117442b099a27ac300c0.tar.gz puppet-11f9e73096c425dfb1ad117442b099a27ac300c0.tar.bz2 puppet-11f9e73096c425dfb1ad117442b099a27ac300c0.tar.xz puppet-11f9e73096c425dfb1ad117442b099a27ac300c0.zip |
add safe guard and usage when running standalone
Diffstat (limited to 'modules/buildsystem/templates')
-rw-r--r-- | modules/buildsystem/templates/sign-check-package | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/buildsystem/templates/sign-check-package b/modules/buildsystem/templates/sign-check-package index 09bf9820..1ce4da82 100644 --- a/modules/buildsystem/templates/sign-check-package +++ b/modules/buildsystem/templates/sign-check-package @@ -1,5 +1,11 @@ #!/bin/sh +if [ $# != 3 ] ; then + echo "missing arguments" + echo "usage : $0 file key_number key_directory" + exit 1 +fi + file="$1" key="$2" keydir="$3" |