sign_file function expects 5 parameters, include the output filename.
This commit is contained in:
parent
06d8aeb822
commit
b05246b276
|
@ -32,7 +32,7 @@
|
|||
-- command line args
|
||||
dofile "optparse.lua"
|
||||
|
||||
opt = OptionParser{usage="%prog [options] file", version="20090711"}
|
||||
opt = OptionParser{usage="%prog [options] file", version="20180428"}
|
||||
|
||||
opt.add_option{"-s", "--sign", action="store_true", dest="sign", help="--sign [--detached] [--armour] file"}
|
||||
opt.add_option{"-v", "--verify", action="store_true", dest="verify", help="--verify [--armour] file"}
|
||||
|
@ -89,7 +89,7 @@ for i = 1, #args do
|
|||
end
|
||||
if options.sign then
|
||||
-- detached signature
|
||||
netpgp.sign_file(pgp, args[1], output, armour, detached)
|
||||
netpgp.sign_file(pgp, args[1], args[1] .. ".sig", armour, detached)
|
||||
os.execute("ls -l " .. args[1] .. ".sig")
|
||||
end
|
||||
if options.verify then
|
||||
|
|
Loading…
Reference in New Issue