refactor(node): remove redundant echo

This commit is contained in:
AJ ONeal
2021-11-15 11:28:56 +00:00
parent d15b4435c9
commit 1a0c42b0fe
+4 -1
View File
@@ -17,7 +17,10 @@ pkg_get_current_version() {
# v12.8.0
# This trims it down to just the version number:
# 12.8.0
echo "$(node --version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')"
node --version 2> /dev/null |
head -n 1 |
cut -d' ' -f1 |
sed 's:^v::'
}
pkg_install() {