Skip to content

Commit 15abb8c

Browse files
committed
refactor: Missed some multi replaces
1 parent 25630f6 commit 15abb8c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

utilities/script_builder/Common/scriptbuilder.common.pas

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ implementation
7070
cReplaceEntryInput = '[[input]]';
7171
cReplaceEntryThreads = '[[threads]]';
7272
cCompilerFPC = 'fpc';
73+
cSSD = 'SSD';
74+
cHDD = 'HDD';
7375
// cCompilerDelphi = 'delphi';
7476

7577
resourcestring
@@ -287,16 +289,16 @@ procedure TBuilder.BuildRunScriptBash;
287289
);
288290
line:= line + 'echo "-- SSD --"' + LineEnding + tmpStr + LineEnding;
289291
// Run for HDD
290-
tmpStr:= StringReplace(
291-
tmpStr,
292-
FConfig.InputSSD,
293-
FConfig.InputHDD,
294-
[rfReplaceAll]
295-
);
296-
tmpStr := StringReplace(
292+
tmpStr:= StringsReplace(
297293
tmpStr,
298-
'SSD',
299-
'HDD',
294+
[
295+
FConfig.InputSSD,
296+
cSSD
297+
],
298+
[
299+
FConfig.InputHDD,
300+
cHDD
301+
],
300302
[rfReplaceAll]
301303
);
302304
line:= line + 'echo "-- HDD --"' + LineEnding + tmpStr + LineEnding;

0 commit comments

Comments
 (0)