fix: test result.toString()
This commit is contained in:
parent
c1f1cea3f9
commit
9ff8873d9b
@ -11,7 +11,7 @@ app:
|
|||||||
publicUrl: '/console'
|
publicUrl: '/console'
|
||||||
|
|
||||||
api:
|
api:
|
||||||
server: 'http://127.0.0.1:9004'
|
server: 'https://apollo1.kube.moon.dxos.network'
|
||||||
path: '/api'
|
path: '/api'
|
||||||
intervalLog: 5000
|
intervalLog: 5000
|
||||||
pollInterval: 10000
|
pollInterval: 10000
|
||||||
|
@ -8,7 +8,7 @@ import childProcess from 'child_process';
|
|||||||
const ifRadicle = () => {
|
const ifRadicle = () => {
|
||||||
try {
|
try {
|
||||||
const result = childProcess.execSync('docker ps -f "ancestor=dxos/radicle-seed-node" -q');
|
const result = childProcess.execSync('docker ps -f "ancestor=dxos/radicle-seed-node" -q');
|
||||||
if (result) {
|
if (result && result.toString()) {
|
||||||
return { title: 'Radicle', url: '/' };
|
return { title: 'Radicle', url: '/' };
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user