mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
fix: don't check code for execa
This commit is contained in:
@@ -13,9 +13,6 @@ import { LogService } from '@app/unraid-api/cli/log.service';
|
|||||||
const getUnraidApiLocation = async () => {
|
const getUnraidApiLocation = async () => {
|
||||||
try {
|
try {
|
||||||
const shellToUse = await execa('which unraid-api');
|
const shellToUse = await execa('which unraid-api');
|
||||||
if (shellToUse.code !== 0) {
|
|
||||||
throw new Error('unraid-api not found');
|
|
||||||
}
|
|
||||||
return shellToUse.stdout.trim();
|
return shellToUse.stdout.trim();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.debug('Could not find unraid-api in PATH, using default location');
|
logger.debug('Could not find unraid-api in PATH, using default location');
|
||||||
|
|||||||
Reference in New Issue
Block a user