update apt cache before doing nodejs/yarn minor update
This commit is contained in:
@@ -344,6 +344,7 @@ function UpdateNodeYarn {
|
|||||||
if [[ "$TASK" == "Update" ]]; then
|
if [[ "$TASK" == "Update" ]]; then
|
||||||
echo
|
echo
|
||||||
printprog "node.js version already on $NODEV, checking updates"
|
printprog "node.js version already on $NODEV, checking updates"
|
||||||
|
runcmd "apt-get update"
|
||||||
runcmd "apt-get install -y --only-upgrade nodejs yarn"
|
runcmd "apt-get install -y --only-upgrade nodejs yarn"
|
||||||
printok "node.js version already on $NODEV, checking updates"
|
printok "node.js version already on $NODEV, checking updates"
|
||||||
elif [[ "$TASK" == "Installation" ]]; then
|
elif [[ "$TASK" == "Installation" ]]; then
|
||||||
|
Reference in New Issue
Block a user