From d2f16ac35966eb02955b177ddf7a884466d933ab Mon Sep 17 00:00:00 2001 From: Rongxin Liu Date: Thu, 4 Jul 2024 21:23:54 -0400 Subject: [PATCH] tweaked animation, added more env vars for check50/submit50 --- opt/cs50/bin/rstudio | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opt/cs50/bin/rstudio b/opt/cs50/bin/rstudio index b934e130..1e9f8083 100755 --- a/opt/cs50/bin/rstudio +++ b/opt/cs50/bin/rstudio @@ -14,7 +14,7 @@ function spin() { while [ -d /proc/$pid ]; do for i in $(seq 0 3); do printf "\rHit CTRL-C to stop the server [%c] " "${spinner:$i:1}" - sleep 0.5 + sleep 0.1 done done printf "\n" @@ -50,6 +50,9 @@ docker pull "$IMAGE" # https://rocker-project.org/images/versioned/rstudio.html#environment-variables docker create \ --env DISABLE_AUTH=true \ + --env CODESPACES=true \ + --env CS50_GH_USER="$CS50_GH_USER" \ + --env CS50_TOKEN="$CS50_TOKEN" \ --name "$NAME" \ --publish 8787:8787 \ --rm \