7575
7676echo_latest_version () {
7777 if [ " ${EDGE-} " ]; then
78- version=" $( curl -fsSL https://api.github.com/repos/cdr /code-server/releases | awk ' match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F ' "' ' {print $4}' ) "
78+ version=" $( curl -fsSL https://api.github.com/repos/coder /code-server/releases | awk ' match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F ' "' ' {print $4}' ) "
7979 else
8080 # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
81- version=" $( curl -fsSLI -o /dev/null -w " %{url_effective}" https://github.com/cdr /code-server/releases/latest) "
81+ version=" $( curl -fsSLI -o /dev/null -w " %{url_effective}" https://github.com/coder /code-server/releases/latest) "
8282 fi
83- version=" ${version# https:// github.com/ cdr / code-server/ releases/ tag/ } "
83+ version=" ${version# https:// github.com/ coder / code-server/ releases/ tag/ } "
8484 version=" ${version# v} "
8585 echo " $version "
8686}
@@ -351,7 +351,7 @@ install_deb() {
351351 echoh " Installing v$VERSION of the $ARCH deb package from GitHub."
352352 echoh
353353
354- fetch " https://github.com/cdr /code-server/releases/download/v$VERSION /code-server_${VERSION} _$ARCH .deb" \
354+ fetch " https://github.com/coder /code-server/releases/download/v$VERSION /code-server_${VERSION} _$ARCH .deb" \
355355 " $CACHE_DIR /code-server_${VERSION} _$ARCH .deb"
356356 sudo_sh_c dpkg -i " $CACHE_DIR /code-server_${VERSION} _$ARCH .deb"
357357
@@ -362,7 +362,7 @@ install_rpm() {
362362 echoh " Installing v$VERSION of the $ARCH rpm package from GitHub."
363363 echoh
364364
365- fetch " https://github.com/cdr /code-server/releases/download/v$VERSION /code-server-$VERSION -$ARCH .rpm" \
365+ fetch " https://github.com/coder /code-server/releases/download/v$VERSION /code-server-$VERSION -$ARCH .rpm" \
366366 " $CACHE_DIR /code-server-$VERSION -$ARCH .rpm"
367367 sudo_sh_c rpm -i " $CACHE_DIR /code-server-$VERSION -$ARCH .rpm"
368368
@@ -388,7 +388,7 @@ install_standalone() {
388388 echoh " Installing v$VERSION of the $ARCH release from GitHub."
389389 echoh
390390
391- fetch " https://github.com/cdr /code-server/releases/download/v$VERSION /code-server-$VERSION -$OS -$ARCH .tar.gz" \
391+ fetch " https://github.com/coder /code-server/releases/download/v$VERSION /code-server-$VERSION -$OS -$ARCH .tar.gz" \
392392 " $CACHE_DIR /code-server-$VERSION -$OS -$ARCH .tar.gz"
393393
394394 # -w only works if the directory exists so try creating it first. If this
0 commit comments