commit dc26a10d7be113db0c4d345e652994858911df24
parent d1ce6be60bbdf9269dba2be78a544ab62c34e17c
Author: Michael Savage <mikejsavage@gmail.com>
Date: Tue, 17 Jun 2014 17:56:18 +0100
Exit with nonzero status when password isn't in DB
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pdb b/pdb
@@ -178,6 +178,8 @@ if arg[ 1 ] == "get" then
if db[ arg[ 2 ] ] then
print( db[ arg[ 2 ] ] )
+ else
+ os.exit( 1 )
end
elseif arg[ 1 ] == "add" then
check( not db[ arg[ 2 ] ], "%s is already in the database", arg[ 2 ] )