Skip to content

Commit a8aad3e

Browse files
authored
Update }bedrock.server.executecommand.pro (#201)
Fix of issue #200
1 parent 8705e91 commit a8aad3e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

main/}bedrock.server.executecommand.pro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
586,
55
585,
66
564,
7-
565,"aaA6uti35[8_z<n9B1sY0IO@Eo@E>InokY0ErPWIxMgeht^vi^08AHegQ6O^UWJ:c0QVTBUm\=w1l6yUbtq4tO^>q<]I;o5auxasGT07qSX?Okq;dHN\7srIi_2Sp_S`ZgIxcdrVyMD<tj7wmgg_H]]LWPINdVl?Pcw\K?QB<RCXX\uDQO5o9s?1Z_RRu0^gvZOx6Bkg"
7+
565,"vR42cY=Lg<Ho7XsFH\;QP6a>pY>LEzY`yL7zoK<eQkr<K4=]bWXn2:u59gfit^NZx94ixs4\cBic:qiuGW`Cn3V\2^?DWgUzCE<t^ktPm1gI`JV2ebSZ?3[6e@wDyMi:QpD3^IBlVYL`F:[;f6O^WZNhJansX1WuEcBGETs4m3XFceIU>:o]vYJIKFB62wUh3DZ;X`Gw"
88
559,1
99
928,0
1010
593,
@@ -52,7 +52,7 @@ pWait,"Wait for command to finish 0=false 1=true"
5252
581,0
5353
582,0
5454
603,0
55-
572,47
55+
572,55
5656
#****Begin: Generated Statements***
5757
#****End: Generated Statements****
5858

@@ -100,6 +100,14 @@ EndIf;
100100
nWait = StringToNumber ( pWait );
101101

102102
# Check if the pCommand parameter is enclosed in quotes and add if not
103+
sSubst = Subst ( pCommand, 1, 1 );
104+
If ( Subst ( pCommand, 1, 1 ) @<> '"' );
105+
sCommand = Expand ( '"%pCommand%"' );
106+
Else;
107+
sCommand = pCommand;
108+
EndIf;
109+
110+
ExecuteCommand ( pCommand, nWait );
103111
573,2
104112
#****Begin: Generated Statements***
105113
#****End: Generated Statements****

0 commit comments

Comments
 (0)