mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 19:47:08 +00:00
Remove while loop
This commit is contained in:
parent
7ceaa3a76e
commit
b15422ae8d
3 changed files with 5 additions and 3 deletions
3
dist/pre/index.js
vendored
3
dist/pre/index.js
vendored
|
|
@ -88704,7 +88704,8 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
var statusFile = "/home/agent/agent.status";
|
||||
var logFile = "/home/agent/agent.log";
|
||||
var counter = 0;
|
||||
while (true) {
|
||||
yield setup_sleep(5000);
|
||||
while (false) {
|
||||
if (!external_fs_.existsSync(statusFile)) {
|
||||
counter++;
|
||||
if (counter > 30) {
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -229,7 +229,8 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
|
|||
var statusFile = "/home/agent/agent.status";
|
||||
var logFile = "/home/agent/agent.log";
|
||||
var counter = 0;
|
||||
while (true) {
|
||||
await sleep(5000);
|
||||
while (false) {
|
||||
if (!fs.existsSync(statusFile)) {
|
||||
counter++;
|
||||
if (counter > 30) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue