From a0f0e701e05b6f58849da78d85bbf870601b9329 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Tue, 18 Dec 2018 12:37:17 +0100 Subject: [PATCH] Update tutorials scripts wget fix --- update-tutorials-full.sh | 4 ++-- update-tutorials.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/update-tutorials-full.sh b/update-tutorials-full.sh index 1bcf7425..ff75a9b9 100755 --- a/update-tutorials-full.sh +++ b/update-tutorials-full.sh @@ -33,7 +33,7 @@ for file in *.html *.ejs; do done # Update every openvidu-browser-VERSION.js file (10 files changed) -curl https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-browser-$TO_VERSION.js --output ./openvidu-browser-$TO_VERSION.js +wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-browser-$TO_VERSION.js readarray array < <(find -name "openvidu-browser-$FROM_VERSION.js" -printf "%h\n" | sort -u) for directory in ${array[@]}; do rm $directory/openvidu-browser-$FROM_VERSION.js @@ -42,7 +42,7 @@ done rm openvidu-browser-$TO_VERSION.js # Update openvidu-webcomponent tutorial files: static web component files and import in index.html -curl https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip --output ./openvidu-webcomponent-$TO_VERSION.zip +wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip unzip openvidu-webcomponent-$TO_VERSION.zip rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.js rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.css diff --git a/update-tutorials.sh b/update-tutorials.sh index f317c411..5416e851 100755 --- a/update-tutorials.sh +++ b/update-tutorials.sh @@ -25,7 +25,7 @@ for file in *.html *.ejs; do done # Update every openvidu-browser-VERSION.js file (10 files changed) -wget --no-check-certificate --content-disposition https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-browser-$TO_VERSION.js . +wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-browser-$TO_VERSION.js readarray array < <(find -name "openvidu-browser-$FROM_VERSION.js" -printf "%h\n" | sort -u) for directory in ${array[@]}; do rm $directory/openvidu-browser-$FROM_VERSION.js @@ -34,7 +34,7 @@ done rm openvidu-browser-$TO_VERSION.js # Update openvidu-webcomponent tutorial files: static web component files and import in index.html -wget --no-check-certificate --content-disposition https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip . +wget https://github.com/OpenVidu/openvidu/releases/download/v$TO_VERSION/openvidu-webcomponent-$TO_VERSION.zip unzip openvidu-webcomponent-$TO_VERSION.zip rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.js rm openvidu-webcomponent/web/openvidu-webcomponent-$FROM_VERSION.css