diff --git a/apps/web/scripts/installExternalCourse.sh b/apps/web/scripts/installExternalCourse.sh index 56ecf6463c56..59b700ae5138 100755 --- a/apps/web/scripts/installExternalCourse.sh +++ b/apps/web/scripts/installExternalCourse.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -wget "https://github.com/$1/archive/refs/heads/main.zip" -O temp.zip +wget "$1" -O temp.zip unzip temp.zip "*/course/*" -d ../../courses/$2 mv ../../courses/$2/*/course/* ../../courses/$2 rm temp.zip diff --git a/apps/web/scripts/installExternalCourses.sh b/apps/web/scripts/installExternalCourses.sh index de4105453521..de44c0c0efab 100755 --- a/apps/web/scripts/installExternalCourses.sh +++ b/apps/web/scripts/installExternalCourses.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash -yarn installCourse kantord/LibreLingo-ES-from-EN spanish-from-english +yarn installCourse "https://github.com/kantord/LibreLingo-ES-from-EN/archive/refs/heads/main.zip" spanish-from-english +yarn installCourse https://codeberg.org/Lamdarer/LibreLingo-DE-from-EN/archive/main.zip german-from-english