Skip to content

Commit 3c9970c

Browse files
committed
Prevent bluescreen
1 parent d7eb4aa commit 3c9970c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

install.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ function install(kernel)
66

77
if (platform === 'linux' && gpu === 'amd')
88
{
9-
return 'python install.py --onnxruntime rocm || exit 0';
9+
return 'python install.py --onnxruntime rocm';
1010
}
1111
if (platform === 'win32' && gpu === 'amd')
1212
{
13-
return 'python install.py --onnxruntime directml || exit 0';
13+
return 'python install.py --onnxruntime directml';
1414
}
1515
if ((platform === 'linux' || platform === 'win32') && gpu === 'intel')
1616
{
17-
return 'python install.py --onnxruntime openvino || exit 0';
17+
return 'python install.py --onnxruntime openvino';
1818
}
1919
if ((platform === 'linux' || platform === 'win32') && gpu === 'nvidia')
2020
{
21-
return 'python install.py --onnxruntime cuda || exit 0';
21+
return 'python install.py --onnxruntime cuda';
2222
}
23-
return 'python install.py --onnxruntime default || exit 0';
23+
return 'python install.py --onnxruntime default';
2424
}
2525

2626
module.exports = async kernel =>
@@ -97,7 +97,7 @@ module.exports = async kernel =>
9797
method: 'shell.run',
9898
params:
9999
{
100-
message: install(kernel),
100+
message: install(kernel) + ' || exit 0',
101101
path: 'facefusion',
102102
conda:
103103
{

0 commit comments

Comments
 (0)