Skip to content

store cookie on environment variable #1

@alexlopespereira

Description

@alexlopespereira

This command does not store the token on the variable. The variable becomes empty.

TOKEN=$(./login.sh $DSPACEURL ${EMAIL} ${PASSWORD} $VERSION)

Then, I've used this instead:

./login.sh $DSPACEURL ${EMAIL} ${PASSWORD} $VERSION 2> ./token.txt
TOKEN=$(cat token.txt | grep JSESSIONID | cut -f2 -d "=" | cut -f1 -d ";")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions