Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install-yarn: Verify that the install location is /srv/zulip-yarn.

Anders Kaseorg458844a2f560
diff --git a/scripts/lib/install-yarn b/scripts/lib/install-yarn
index fa8ba03906f..2aa8fd81f82 100755
--- a/scripts/lib/install-yarn
+++ b/scripts/lib/install-yarn
@@ -10,7 +10,8 @@ check_version() {
# than running yarn --version.
link="$(command -v yarn)" \
&& bin="$(readlink -f "$link")" \
- && current_version="$(jq -r '.version' "${bin%/*/*}/package.json")" \
+ && [ "$bin" = /srv/zulip-yarn/bin/yarn ] \
+ && current_version="$(jq -r '.version' /srv/zulip-yarn/package.json)" \
&& [ "$current_version" = "$version" ]
}