fix: don't check code for execa

This commit is contained in:
Eli Bosley
2025-01-28 13:00:07 -05:00
parent e7b689c546
commit f62f0d3a0f

View File

@@ -13,9 +13,6 @@ import { LogService } from '@app/unraid-api/cli/log.service';
const getUnraidApiLocation = async () => {
try {
const shellToUse = await execa('which unraid-api');
if (shellToUse.code !== 0) {
throw new Error('unraid-api not found');
}
return shellToUse.stdout.trim();
} catch (err) {
logger.debug('Could not find unraid-api in PATH, using default location');