From be08b75b67e76c69210accb7b4cb6fe7527735cc Mon Sep 17 00:00:00 2001 From: Daniel Kantor Date: Sun, 3 Oct 2021 20:32:47 +0200 Subject: [PATCH] feat: import german course from external repo (#1659) Update installExternalCourses.sh Co-authored-by: Lamdarer <50927784+Lamdarer@users.noreply.github.com> --- apps/web/scripts/installExternalCourse.sh | 2 +- apps/web/scripts/installExternalCourses.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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