From d68a1ed2b1362ef7fb9fa2940906004d7ef96553 Mon Sep 17 00:00:00 2001 From: "Kenny Hung (he)" Date: Tue, 16 Sep 2025 21:46:02 +0100 Subject: [PATCH] Parse only first line of nvmrc --- bin/parse-legacy-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/parse-legacy-file b/bin/parse-legacy-file index 87c0b65..55022ef 100755 --- a/bin/parse-legacy-file +++ b/bin/parse-legacy-file @@ -5,4 +5,4 @@ set -eu -o pipefail # shellcheck source=../lib/utils.sh source "$(dirname "$0")/../lib/utils.sh" -resolve_version "$(cat "$1")" +resolve_version "$(head -n 1 "$1")"