From 0b405ec39e2a555bf5a82b35f94069f8da3cdf20 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 21 Jun 2023 23:00:17 -0700 Subject: [PATCH] Hide any output from `use_node` checking for Node compatibility (#4237) (#4355) Signed-off-by: Miki Signed-off-by: Josh Romero Co-authored-by: Josh Romero (cherry picked from commit f298e7e97471253f4e7541c0aa5f855e20570036) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- scripts/use_node | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/use_node b/scripts/use_node index 48e7e2858200..695abfbcc4f2 100755 --- a/scripts/use_node +++ b/scripts/use_node @@ -64,7 +64,7 @@ else if [ -d "${OSD_HOME}/bin" ]; then NODE_ERROR_SHOW=true # Not all operating systems can run the latest Node.js and the fallback is for them - "${NODE}" -v 2> /dev/null + "${NODE}" -v > /dev/null 2>&1 if [ $? -ne 0 ] && [ -d "${OSD_HOME}/node/fallback" ]; then NODE="$OSD_HOME/node/fallback/bin/node" fi