commit | de36acf9a974c094e7182fa277898f4d3f59e583 | [log] [tgz] |
---|---|---|
author | Moritz Mühlenhoff <mmuhlenhoff@wikimedia.org> | Tue Nov 17 10:12:23 2020 +0100 |
committer | Moritz Mühlenhoff <mmuhlenhoff@wikimedia.org> | Tue Nov 17 10:46:01 2020 +0100 |
tree | d16abdf88ef5e6e77bf1e2b23f09ea703541e0cd | |
parent | f52ec44f9e6aee275447e17ad586c3ce21e8ccbc [diff] [blame] |
Flag an error if key file can't be found If no local key file can be found, flag an explicicit error to prevent keys from silently going amiss. Change-Id: Iec899193154131c68885ceae84ae34f99e5e157d
diff --git a/scripts/pws b/scripts/pws index 202d983..6812f78 100755 --- a/scripts/pws +++ b/scripts/pws
@@ -923,6 +923,8 @@ user_keyfile = File.join('keys', "#{uid}.key") if File.file?(user_keyfile) keyring.write(File.read(user_keyfile)) + else + puts "No key file found for user " + uid end end end