Skip to content

Commit b6e8661

Browse files
fix. internet
1 parent 5acf937 commit b6e8661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/terminal/www/Terminal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Terminal = {
3333
if (type === 'stderr') console.error(data);
3434
if (type === 'exit') console.log('EXIT:', data);
3535
}).then(pid => {
36-
36+
Executor.execute(`echo \"${pid}\" > ${filesDir}/pid`)
3737
Executor.write(pid, `export LD_LIBRARY_PATH=${filesDir}`);
3838
Executor.write(pid, `export PROOT_TMP_DIR=${filesDir}/tmp`);
3939
Executor.write(pid, `export PROOT_LOADER=${nativeLibs}/libproot.so`);
@@ -42,9 +42,9 @@ const Terminal = {
4242

4343
Executor.write(pid, `${nativeLibs}/libproot-xed.so -b ${filesDir}:${filesDir} -b /data:/data -b /system:/system -b /vendor:/vendor -S ${filesDir}/alpine`);
4444
Executor.write(pid, `command -v bash >/dev/null 2>&1 || apk update && apk add bash`);
45+
4546
Executor.write(pid, `${filesDir}/axs`);
4647

47-
Executor.execute(`echo \"${pid}\" > ${filesDir}/pid`)
4848
}).catch(console.error);
4949

5050
},

0 commit comments

Comments
 (0)