Skip to content

Commit 40bd192

Browse files
committed
fix: keep yarn repository key up to date when running updates
1 parent 643161d commit 40bd192

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

xo-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ function UpdateNodeYarn {
424424
fi
425425

426426
if [ "$PKG_FORMAT" == "deb" ]; then
427+
if [[ "$INSTALL_REPOS" == "true" ]]; then
428+
# make sure yarn repository key is up to date
429+
runcmd "curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /etc/apt/trusted.gpg.d/yarn.asc"
430+
fi
427431
if [[ "${NODEV:-0}" -lt "${NODEVERSION}" ]] && [[ "$INSTALL_REPOS" == "true" ]]; then
428432
echo
429433
printprog "node.js version is ${NODEV:-"not installed"}, upgrading to ${NODEVERSION}.x"

0 commit comments

Comments
 (0)