I have a really simple shell script which work really well on bash and export the varialbes to the current bash enviornment but unfortunately it didn't export the variables to the zsh enviornment.
#!/bin/bash
export AWS_ACCESS_KEY_ID=$(echo $RESULT | jq --raw-output .Credentials.AccessKeyId)
export AWS_SECRET_ACCESS_KEY=$(echo $RESULT | jq --raw-output .Credentials.SecretAccessKey)
export AWS_SECURITY_TOKEN=$(echo $RESULT | jq --raw-output .Credentials.SessionToken)
and I am running this script like this:
source myscript.sh
OR
. ./myscript.sh
Please advise, that how I can make it work on the zsh environment?