mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
install-yarn: Use test -ef in case /srv is a symlink.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Alex Vandiver
parent
c6d9029dfc
commit
82748d45d8
@@ -9,8 +9,7 @@ check_version() {
|
||||
# Reading the version of Yarn from its package.json is much faster
|
||||
# than running yarn --version.
|
||||
link="$(command -v yarn)" \
|
||||
&& bin="$(readlink -f "$link")" \
|
||||
&& [ "$bin" = /srv/zulip-yarn/bin/yarn ] \
|
||||
&& [ "$link" -ef /srv/zulip-yarn/bin/yarn ] \
|
||||
&& current_version="$(jq -r '.version' /srv/zulip-yarn/package.json)" \
|
||||
&& [ "$current_version" = "$version" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user