mirror of https://github.com/zulip/zulip.git
install-yarn: Verify that the install location is /srv/zulip-yarn.
scripts.lib.node_cache expects Yarn to be in /srv/zulip-yarn, so if it’s installed somewhere else, even if it’s the right version, we need to reinstall it. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
071c1c617d
commit
458844a2f5
|
@ -10,7 +10,8 @@ check_version() {
|
||||||
# than running yarn --version.
|
# than running yarn --version.
|
||||||
link="$(command -v yarn)" \
|
link="$(command -v yarn)" \
|
||||||
&& bin="$(readlink -f "$link")" \
|
&& 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" ]
|
&& [ "$current_version" = "$version" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue