Skip to content

Commit 8617bbd

Browse files
fix: wrong file removing / creation
1 parent c77792d commit 8617bbd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/components/steps/FileCleanup.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const FileCleanup: FC<Props> = ({ onCompletion, installationConfig, projectName
9292
silent
9393
command="cp"
9494
args={['./.install-files/home/index.tsx', currentHomeFolder]}
95-
runningText={'Creating new home page file...'}
95+
runningText={'Creating new home page index file...'}
9696
successText={'Done!'}
9797
failureText={'Error...'}
9898
/>
@@ -125,13 +125,14 @@ const FileCleanup: FC<Props> = ({ onCompletion, installationConfig, projectName
125125
successText={'Done!'}
126126
failureText={'Error...'}
127127
/>
128+
{/* Examples index removing and creating */}
128129
<Spawn
129130
shell
130131
cwd={projectFolder}
131132
silent
132133
command="rm"
133-
args={[`${currentHomeFolder}/index.tsx`]}
134-
runningText={'Removing home page file...'}
134+
args={[`${currentHomeFolder}/Examples/index.tsx`]}
135+
runningText={'Removing examples index file...'}
135136
successText={'Done!'}
136137
failureText={'Error...'}
137138
/>
@@ -142,9 +143,9 @@ const FileCleanup: FC<Props> = ({ onCompletion, installationConfig, projectName
142143
command="cp"
143144
args={[
144145
'./.install-files/home/Examples/index.tsx',
145-
`${currentHomeFolder}/index.tsx`,
146+
`${currentHomeFolder}/Examples/index.tsx`,
146147
]}
147-
runningText={'Creating new home page file...'}
148+
runningText={'Creating new examples index file...'}
148149
successText={'Done!'}
149150
failureText={'Error...'}
150151
/>

0 commit comments

Comments
 (0)