From 45830168e05169e074e8bd78b087a46685da677c Mon Sep 17 00:00:00 2001 From: ronivay Date: Wed, 21 Jul 2021 17:40:48 +0300 Subject: [PATCH] update apt cache before doing nodejs/yarn minor update --- xo-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/xo-install.sh b/xo-install.sh index 27386d9..380fe01 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -344,6 +344,7 @@ function UpdateNodeYarn { if [[ "$TASK" == "Update" ]]; then echo printprog "node.js version already on $NODEV, checking updates" + runcmd "apt-get update" runcmd "apt-get install -y --only-upgrade nodejs yarn" printok "node.js version already on $NODEV, checking updates" elif [[ "$TASK" == "Installation" ]]; then