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.
- checksums.yaml +4 -4
- data/bin/lastpass-ssh +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b4bc4ccebae456b92cf31f6005c7e11fb1ee943
|
4
|
+
data.tar.gz: b5e16031729735101302b78d7ad8bd34a0e83e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c73d13067ed58619ee9d7b9e6cd5f2ba6baf27de9db393e27bb82bd51c44617e3155aa08dc9c3087b85c814cc4e4addec3433da6f8bb31112488c246c43a6c7f
|
7
|
+
data.tar.gz: 9477e2909c35481f14805aca07ca557828c9a19168de4b688bcd210046bb7206aba16c0ea5e8e84833162b491b7c2d5a08c376d713052fc715ae52cc9822065f
|
data/bin/lastpass-ssh
CHANGED
@@ -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
|
+
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:
|
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
|