querysub 0.296.0 → 0.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -101,7 +101,7 @@ export function doRegisterNodeForMachineCleanup() {
|
|
|
101
101
|
async function registerNodeForMachineCleanup(nodeId: string) {
|
|
102
102
|
let currentPath = path.resolve(".").replaceAll("\\", "/");
|
|
103
103
|
let array = currentPath.split("/");
|
|
104
|
-
if (array.at(-1) === "git" && array.at(-
|
|
104
|
+
if (array.at(-1) === "git" && array.at(-3) === SERVICE_FOLDER_NAME) {
|
|
105
105
|
let nodeIdPath = array.slice(0, -1).join("/") + "/" + SERVICE_NODE_FILE_NAME;
|
|
106
106
|
console.log(green(`Registering node for machine cleanup at ${nodeIdPath}`));
|
|
107
107
|
await fs.promises.writeFile(nodeIdPath, nodeId);
|