diff --git a/update-packages.sh b/update-packages.sh index f204477..f8f633d 100755 --- a/update-packages.sh +++ b/update-packages.sh @@ -1,9 +1,14 @@ #!/bin/bash +set -e +set -u + pushd packages/assets -git clone https://git.daplie.com/Daplie/oauth3.js.git org.oauth3 +OAUTH3_GIT_URL="https://git.daplie.com/Oauth3/oauth3.js.git" +git clone ${OAUTH3_GIT_URL} org.oauth3 || true pushd org.oauth3 +git remote set-url origin ${OAUTH3_GIT_URL} git checkout master git pull popd