diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index 70b15a246a..7392c293b1 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -1,7 +1,7 @@ #!/bin/sh -ve -rm -r assets/js/package +rm assets/js/package/olm* -OLM_VERSION=$(cat pubspec.yaml | yq .dependencies.flutter_olm) +OLM_VERSION=$(cat pubspec.yaml | yq -r .dependencies.flutter_olm) DOWNLOAD_PATH="https://github.com/famedly/olm/releases/download/v$OLM_VERSION/olm.zip" cd assets/js/ && curl -L $DOWNLOAD_PATH > olm.zip && cd ../../