Skip to content

Commit

Permalink
fix checkNodeV.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
XK4MiLX authored Oct 29, 2023
1 parent 7920b27 commit 0b43013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkNodeV.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
current_node_ver="$(node -v)"
required_node_ver="v17.0.0"
if [ "$(printf '%s\n' "$required_node_ver" "$current_node_ver" | sort -V | head -n1)" = "$required_node_ver">
if [ "$(printf '%s\n' "$required_node_ver" "$current_node_ver" | sort -V | head -n1)" = "$required_node_ver" ]; then
echo "node-options='--openssl-legacy-provider'" > .npmrc
else
echo '' > .npmrc
Expand Down

0 comments on commit 0b43013

Please sign in to comment.