update apt cache before doing nodejs/yarn minor update

This commit is contained in:
ronivay
2021-07-21 17:40:48 +03:00
parent fc009e0ffb
commit 45830168e0

View File

@@ -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