mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 14:05:41 -04:00
fix(build): add compatibility for detecting commands for older operating systems
This commit is contained in:
@@ -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]}"
|
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]}"
|
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
|
bHasError=true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user