File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 123123# fix upgrade issue with macOS when running as a service
124124attemptedtargetedfix=0
125125currentplatform=$( uname | awk ' {print tolower($0)}' )
126- if [[ " $currentplatform " == ' darwin' && restartinteractiverunner -eq 0 ]]; then
126+ if [[ " $currentplatform " == ' darwin' && $ restartinteractiverunner -eq 0 ]]; then
127127 # We needed a fix for https://github.com/actions/runner/issues/743
128128 # We will recreate the ./externals/nodeXY/bin/node of the past runner version that launched the runnerlistener service
129129 # Otherwise mac gatekeeper kills the processes we spawn on creation as we are running a process with no backing file
@@ -146,10 +146,11 @@ if [[ "$currentplatform" == 'darwin' && restartinteractiverunner -eq 0 ]]; then
146146 then
147147 nodever=" node16"
148148 path=$( lsof -a -g " $procgroup " -F n | grep $nodever /bin/node | grep externals | tail -1 | cut -c2-)
149- if [[ $? -ne 0 || -z " $path " ]] # Fallback if RunnerService.js was started with node12
150- then
151- nodever=" node12"
152- path=$( lsof -a -g " $procgroup " -F n | grep $nodever /bin/node | grep externals | tail -1 | cut -c2-)
149+ if [[ $? -ne 0 || -z " $path " ]] # Fallback if RunnerService.js was started with node12
150+ then
151+ nodever=" node12"
152+ path=$( lsof -a -g " $procgroup " -F n | grep $nodever /bin/node | grep externals | tail -1 | cut -c2-)
153+ fi
153154 fi
154155 fi
155156 if [[ $? -eq 0 && -n " $path " ]]
You can’t perform that action at this time.
0 commit comments