Skip to content

Commit 508a5eb

Browse files
committed
fix: don't check code for execa
1 parent c66079e commit 508a5eb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

api/src/cli.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ import { LogService } from '@app/unraid-api/cli/log.service';
1313
const getUnraidApiLocation = async () => {
1414
try {
1515
const shellToUse = await execa('which unraid-api');
16-
if (shellToUse.code !== 0) {
17-
throw new Error('unraid-api not found');
18-
}
1916
return shellToUse.stdout.trim();
2017
} catch (err) {
2118
logger.debug('Could not find unraid-api in PATH, using default location');

0 commit comments

Comments
 (0)