From 40bd192dfae7d680289426dbe4139ac654868338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Fri, 30 Jan 2026 10:09:18 +0200 Subject: [PATCH] fix: keep yarn repository key up to date when running updates --- xo-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xo-install.sh b/xo-install.sh index ac5dd7c..ffafb5d 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -424,6 +424,10 @@ function UpdateNodeYarn { fi if [ "$PKG_FORMAT" == "deb" ]; then + if [[ "$INSTALL_REPOS" == "true" ]]; then + # make sure yarn repository key is up to date + runcmd "curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /etc/apt/trusted.gpg.d/yarn.asc" + fi if [[ "${NODEV:-0}" -lt "${NODEVERSION}" ]] && [[ "$INSTALL_REPOS" == "true" ]]; then echo printprog "node.js version is ${NODEV:-"not installed"}, upgrading to ${NODEVERSION}.x"