mac fixes

This commit is contained in:
shocknet-justin 2025-11-26 23:07:06 -05:00
parent 471464905f
commit 67425e6c22
2 changed files with 10 additions and 1 deletions

View file

@ -17,7 +17,7 @@ install_nodejs_mac() {
# Check if node exists and meets minimum version
if command -v node &> /dev/null; then
NODE_VERSION=$(node -v | sed 's/v//')
if [ "$(printf '%s\n' "$MINIMUM_VERSION" "$NODE_VERSION" | sort -V | head -n1)" = "$MINIMUM_VERSION" ]; then
if [ "$(printf '%s\n' "$MINIMUM_VERSION" "$NODE_VERSION" | sort -V | awk 'NR==1')" = "$MINIMUM_VERSION" ]; then
log "Node.js is already installed and meets the minimum version requirement."
return 0
fi