Skip to content

Commit b9ac02e

Browse files
committed
Update tools.func
1 parent 66d2f96 commit b9ac02e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

misc/tools.func

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,6 @@ function setup_nodejs() {
6464
fi
6565
fi
6666

67-
if ! apt-cache policy nodejs | grep -q 'Candidate:'; then
68-
msg_error "Node.js package not found – repository might be broken or too fresh"
69-
apt-cache policy nodejs >&2
70-
exit 1
71-
fi
72-
73-
if ! apt-get install -y nodejs >/dev/null 2>&1; then
74-
msg_error "Failed to install Node.js ${NODE_VERSION} from NodeSource"
75-
exit 1
76-
fi
77-
7867
if ! apt-get install -y nodejs >/dev/null 2>&1; then
7968
msg_error "Failed to install Node.js ${NODE_VERSION} from NodeSource"
8069
exit 1

0 commit comments

Comments
 (0)