File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -781,6 +781,7 @@ class UserData {
781
781
"#!/bin/bash",
782
782
`shutdown -P +${this.config.ec2InstanceTtl}`,
783
783
"CURRENT_PATH=$(pwd)",
784
+ 'CURRENT_PATH="${CURRENT_PATH%/}"',
784
785
`echo "./config.sh remove --token ${runnerRegistrationToken.token} || true" > $CURRENT_PATH/shutdown_script.sh`,
785
786
`echo "shutdown -P +1" > $CURRENT_PATH/shutdown_script.sh`,
786
787
"chmod +x $CURRENT_PATH/shutdown_script.sh",
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export class UserData {
38
38
"#!/bin/bash" ,
39
39
`shutdown -P +${ this . config . ec2InstanceTtl } ` ,
40
40
"CURRENT_PATH=$(pwd)" ,
41
+ 'CURRENT_PATH="${CURRENT_PATH%/}"' ,
41
42
`echo "./config.sh remove --token ${ runnerRegistrationToken . token } || true" > $CURRENT_PATH/shutdown_script.sh` ,
42
43
`echo "shutdown -P +1" > $CURRENT_PATH/shutdown_script.sh` ,
43
44
"chmod +x $CURRENT_PATH/shutdown_script.sh" ,
You can’t perform that action at this time.
0 commit comments