From b85d8e9c68ee5a67f692fe65ee17f326edf70477 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 6 Jul 2021 00:42:07 -0700 Subject: [PATCH] Fix node_lts/node_current alias --- node/.config/profile/profile.d/node.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/.config/profile/profile.d/node.sh b/node/.config/profile/profile.d/node.sh index 01b2001..8da35ab 100644 --- a/node/.config/profile/profile.d/node.sh +++ b/node/.config/profile/profile.d/node.sh @@ -1,5 +1,5 @@ # shellcheck shell=bash #ft=sh -alias node_current="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep -v '-' | head -n 2 | tail -n 1 | cut -f 1" -alias node_lts="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep '-' | head -n 1 | cut -f 1" +alias node_lts="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep -v '-' | head -n 2 | tail -n 1 | cut -f 1" +alias node_current="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep '-' | head -n 1 | cut -f 1"