File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ type ShellConfig = Partial<{
6
6
workdir : string
7
7
} > ;
8
8
9
+ let observedProcess = false ;
10
+
9
11
export const ShellConfigurator : React . FC = ( ) => {
10
12
const boot = useStore ( tutorialStore . bootStatus ) ;
11
13
const storeRef = useStore ( tutorialStore . ref ) ;
@@ -38,10 +40,10 @@ export const ShellConfigurator: React.FC = () => {
38
40
const { workdir } = conf ;
39
41
if ( ! workdir ) return ;
40
42
41
- terminal . input ( `cd /home/tutorial${ workdir } && clear\n` ) ;
42
-
43
43
const checkProcess = ( ) => {
44
- if ( terminal . process ) {
44
+ console . log ( 'Checking process...' , terminal . process , observedProcess ) ;
45
+ if ( terminal . process || observedProcess ) {
46
+ if ( ! observedProcess ) observedProcess = true ;
45
47
terminal . input ( `cd /home/tutorial${ workdir } && clear\n` ) ;
46
48
return true ;
47
49
}
You can’t perform that action at this time.
0 commit comments