Skip to content

Commit

Permalink
fix: cd out of project to avoid relative yarn version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaryt committed Mar 14, 2022
1 parent e4b1dcd commit 3e15fb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/install-yarn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ installation_check () {
fi
}

# cd to home so that yarn --version will not use relative installed yarn from .yarn/releases
cd ~ || echo "Cannot change directory to home directory, yarn version may be mismatched."

get_yarn_version
installation_check

Expand Down

0 comments on commit 3e15fb7

Please sign in to comment.