Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions tnvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,19 +326,15 @@ _tnvm_lookup_nodemap() {
case "$PATTERN" in
"alinode") mirror=$MIRROR_ALINODE
;;
"profiler") mirror=$MIRROR_PROFILER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两句去掉不会有问题么?

;;
*) return 1
;;
esac

NODEMAP="$(_tnvm_download -L -s "$mirror/index.tab" -o - \
| command sed "
1d;
s/^/$PATTERN-/;" \
| command awk '{ print "Node.js upkeep release to provide "$1 " with Node.js " $10}' \
| command grep -w "$PATTERN" \
| command sort)"
| command awk '{ print $1 $10}' \
| command awk -F "v" '{ print $2 " " $3}' \
| command sort -t. -k 1,1n -k 2,2n \
| command awk '{print "Node.js upkeep release to provide alinode-v"$1 " with Node.js v" $2}')"

if [ -z "$NODEMAP" ]; then
return 3
Expand Down