lastpass-ssh 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lastpass-ssh +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fd57a79dd05753c809aa0cb49f6d69dcd785829
4
- data.tar.gz: f7b99f723ace54b12a6077beb85061bff42b9f61
3
+ metadata.gz: 0b4bc4ccebae456b92cf31f6005c7e11fb1ee943
4
+ data.tar.gz: b5e16031729735101302b78d7ad8bd34a0e83e8d
5
5
  SHA512:
6
- metadata.gz: 7cd3d6842c5526c12dda3f9e2106870fe0ceb5270e9e2bda54cc7a049e36c02440bd3d43860f57d89078a3536312c575378b3234bad09133c1c1a832ff2a35f5
7
- data.tar.gz: 3cac5f5f4e82fb1ac4077b77f77315a9f23e886ad411792b4a3f8b091ab631712ab704be393e8f9f8f1b5fb35b8339598f135d47792286d5161f67214ebdc852
6
+ metadata.gz: c73d13067ed58619ee9d7b9e6cd5f2ba6baf27de9db393e27bb82bd51c44617e3155aa08dc9c3087b85c814cc4e4addec3433da6f8bb31112488c246c43a6c7f
7
+ data.tar.gz: 9477e2909c35481f14805aca07ca557828c9a19168de4b688bcd210046bb7206aba16c0ea5e8e84833162b491b7c2d5a08c376d713052fc715ae52cc9822065f
@@ -60,6 +60,13 @@ else
60
60
  raw_lines = `lpass ls "Secure Notes\\SSH"`
61
61
  lines = raw_lines.split("\n").select { |l| l if l =~ /^Secure/ }[1..-1]
62
62
 
63
+ # Check if we got anything from `lpass`
64
+ if lines.length <= 0 then
65
+ print "Something looks wrong. Maybe you don't have any Secure Notes yet?\n"
66
+ print "In that case, take a look at lastpass-ssh README file\n"
67
+ exit 64
68
+ end
69
+
63
70
  label_printed = false
64
71
  # Use key's name, make path out of it, attempt to add it by its ID
65
72
  lines.each.map{ |l| l.scan(/\w+/)}.each do |sec, notes, ssh, key_name, id_str, key_id|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastpass-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Adam Koszek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-28 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The lastpass-ssh lets you remember SSH passphrases in LastPass
14
14
  email: wojciech@koszek.com