feat: setCookies uses netlify

This commit is contained in:
Vyacheslav Matyukhin 2022-03-24 15:47:35 +03:00
parent 20af4e91fb
commit abf3ba8327
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -2,7 +2,7 @@
clear clear
echo " echo "
Platforms: Platforms:
[0]: IFER [0]: INFER
[1]: Good Judgment Open [1]: Good Judgment Open
" "
read -p "Choose a platform [0/1]: " platform read -p "Choose a platform [0/1]: " platform
@ -30,8 +30,8 @@ case $platform in
echo "" echo ""
echo "Cookie found:" echo "Cookie found:"
echo "$cookie" echo "$cookie"
echo "Running: heroku config:set INFER_COOKIE='\$cookie'" echo "Running: netlify env:set INFER_COOKIE '\$cookie'"
heroku config:set INFER_COOKIE="$cookie" netlify env:set INFER_COOKIE "$cookie"
;; ;;
"1" ) "1" )
echo "Platform: Good Judgment Open" echo "Platform: Good Judgment Open"
@ -54,8 +54,8 @@ case $platform in
echo "" echo ""
echo "Cookie found:" echo "Cookie found:"
echo "$cookie" echo "$cookie"
echo "Running: heroku config:set GOODJUDGMENTOPENCOOKIE='\$cookie'" echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'"
heroku config:set GOODJUDGMENTOPENCOOKIE="$cookie" netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
;; ;;
* ) * )
echo "Option not in {0,1}, exiting." echo "Option not in {0,1}, exiting."