Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d90027e0bb
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (23 sloc) 0.679 kb
#!/bin/sh
if [ -r "`dirname "$0"`"/tve-setup.sh ]; then
. "`dirname "$0"`"/tve-setup.sh
else
. "$TVEROOT"/usr/lib/tve-setup.sh
fi
BASEURL="http://pkgs.theveeb.com/" # XXX: Should this be an argument?
# Verify the presence of oauthsign
if ! cmdexists oauthsign; then
echo "You need the oauthsign utility from oauth-utils installed to use this script." 1>&2
exit 1
fi
# URL to request
URL="https://theveeb.com/users/me"
# Find the file where OAuth tokens are and get them
TOKENS="`getTVETokens "$BASEURL"`"
REQUEST="`getTVEAuthRequest "$TOKENS" "$URL"`"
T="`net2stdout "$REQUEST"`"
if [ $? -ne 0 ]; then
echo "Not properly logged in." 1>&2
exit 2
fi
echo "Logged in."
Jump to Line
Something went wrong with that request. Please try again.