Defines a curve
set_target() {
# Get Structure
if [[ "$2" == *"github.io"* ]]; then
[[ -n "$ID" ]] && SPIN=$( echo $ID | sed 's/.* //')
IFS=', '; array=($(pinned_repos.rb ${OWNER} | yq eval -P | sed "s/ /, /g"))
else
HEADER="Accept: application/vnd.github+json"
echo ${INPUT_TOKEN} | gh auth login --with-token
gh api -H "${HEADER}" /users/eq19/gists --jq '.[].files.[].raw_url' > /tmp/tempout
IFS=', '; array=($(gh api -H "${HEADER}" /user/orgs --jq '.[].login' | sort -uf | yq eval -P | sed "s/ /, /g"))
fi