Commit aeae40c7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 1d8cd7b8
Pipeline #16363 passed with stages
in 38 seconds
...@@ -54,7 +54,10 @@ export class RouteWriter { ...@@ -54,7 +54,10 @@ export class RouteWriter {
// 可能改成异步的会更好点? // 可能改成异步的会更好点?
const input = this.input.join('\n'); const input = this.input.join('\n');
console.log(input); console.log(input);
child_process.execFileSync('ip', ['-batch', '-'], { input }); try {
child_process.execFileSync('ip', ['-force', '-batch', '-'], { input });
} catch {
}
this.input = []; this.input = [];
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment