Skip to content

Commit

Permalink
Also store login.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Oct 31, 2010
1 parent 39384bf commit 61a55d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ do
esac

# Parse out the DevStructure API token.
TOKEN=$(tr , \\n <"$TMPNAME" | tr -d \" | grep ^token | cut -c7-)
TMP=$(tr , \\n <"$TMPNAME" | tr -d \"\{\})
LOGIN=$(echo "$TMP" | grep ^login | cut -c7-)
TOKEN=$(echo "$TMP" | grep ^token | cut -c7-)
[ -z "$TOKEN" ] && {
echo "No DevStructure API token found." >&2
echo -e \
Expand All @@ -89,6 +91,7 @@ do
}

# Store the DevStructure API token for later.
echo "$LOGIN" >~/.login
echo "$TOKEN" >~/.token

# Install the DevStructure software.
Expand Down

0 comments on commit 61a55d0

Please sign in to comment.