Skip to content

Commit

Permalink
Merge pull request #95 from atsign-foundation/cpswan-drop-env
Browse files Browse the repository at this point in the history
fix: Remove `env` from exports
  • Loading branch information
XavierChanth authored Nov 29, 2023
2 parents ee8ddcb + aae914c commit 5f8a363
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ if [[ $# -eq 0 || $# -gt 5 ]] ; then
exit 0
fi

export env ATSIGN=$1
export env FQDN=$2
export env PORT=$3
export env EMAIL=$4
export env SERVICE=$5
export ATSIGN=$1
export FQDN=$2
export PORT=$3
export EMAIL=$4
export SERVICE=$5

error_exit() {
exit_msg=""
Expand All @@ -27,7 +27,7 @@ error_exit() {

# Let's make a secret whilst we are here !
SECRET=$(head -30 /dev/urandom | openssl sha512 | awk -F'= ' '{print $2}')
export env SECRET
export SECRET

# Check that we have an @ in the @sign
if [[ ! $ATSIGN =~ ^@.*$ ]]
Expand Down

0 comments on commit 5f8a363

Please sign in to comment.