fix(build): add compatibility for detecting commands for older operating systems

This commit is contained in:
2025-06-01 11:09:23 -07:00
parent fd76d3ce59
commit 94da974373

View File

@@ -166,7 +166,7 @@ fi
# #
printf '%-29s %-65s\n' " ${c[bluel]}STATUS${c[end]}" "${c[end]}Running command ${c[bluel]}npm install --omit=dev${c[end]}"
if [ ! -x "$(command -v npm)" ]; then
if ! command -v npm; then
printf '%-29s %-65s\n' " ${c[redl]}ERROR${c[end]}" "${c[end]}Cannot install TVApp2 with npm because package ${c[redl]}npm${c[end]} not installed${c[end]}"
bHasError=true
else