Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1f6deb03
authored
Jun 12, 2013
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure curl is silent
parent
d9f5573d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lookup.sh
+2
-2
No files found.
lookup.sh
View file @
1f6deb03
...
@@ -4,10 +4,10 @@ url="$1"
...
@@ -4,10 +4,10 @@ url="$1"
if
[
$#
-eq
1
]
;
then
if
[
$#
-eq
1
]
;
then
read
line
read
line
fingerprint
=
$(
ssh-keygen
-lf
/dev/stdin
<<<
$line
| cut
-f2
-d
' '
)
fingerprint
=
$(
ssh-keygen
-lf
/dev/stdin
<<<
$line
| cut
-f2
-d
' '
)
exec
curl
-G
"
$url
"
--data-urlencode
"fingerprint=
${
fingerprint
}
"
exec
curl
-
s
-
G
"
$url
"
--data-urlencode
"fingerprint=
${
fingerprint
}
"
elif
[
$#
-eq
2
]
;
then
elif
[
$#
-eq
2
]
;
then
username
=
"
$2
"
username
=
"
$2
"
exec
curl
-G
"
$url
"
--data-urlencode
"username=
${
username
}
"
exec
curl
-
s
-
G
"
$url
"
--data-urlencode
"username=
${
username
}
"
else
else
echo
"Invalid number of arguments"
>
&2
echo
"Invalid number of arguments"
>
&2
exit
2
exit
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment