From 94da974373ced1c9274dba9fbef7c9f21aa5b8db Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Sun, 1 Jun 2025 11:09:23 -0700 Subject: [PATCH] fix(build): add compatibility for detecting commands for older operating systems --- root/etc/services.d/tvapp2/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/services.d/tvapp2/run b/root/etc/services.d/tvapp2/run index 305592df..de7e00f3 100755 --- a/root/etc/services.d/tvapp2/run +++ b/root/etc/services.d/tvapp2/run @@ -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