Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up more thoroughly #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions set-k5env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if $K5CREDS ; then
K5CREDS=false
else
CHOICE=$(($CHOICE-1))

# read the chosen creds file and set auth vars
FILE="./k5creds_${CREDS[$CHOICE]}.txt"
while IFS= read LINE || [[ -n "$LINE" ]]
Expand Down Expand Up @@ -82,7 +82,7 @@ CSV=$(curl -X GET -k -s $IDENTITYV3/users/$USER_ID/projects -H "X-Auth-Token: $O

# Save the projects to a csv in the current folder
echo "$CSV" > "./${CONTRACT}_projects.csv"

# Prompt for something to use to locate the correct project
echo -en "\nEnter all or part of your project name (leave blank to see all): "
read PROJECT
Expand Down Expand Up @@ -172,6 +172,9 @@ export OS_IDENTITY_API_VERSION=3
# Tidy up
unset K5CREDS
unset CREDS
unset CSV
unset RETURN
unset INDEX
unset EPREQ
unset EPFULL
unset PROJECT
Expand Down