Commit 1f6deb03 by Scott Duckworth

make sure curl is silent

parent d9f5573d
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment