This commit is contained in:
Ryan Ghadimi 2025-05-06 18:25:16 +00:00
parent 4cce91d01c
commit a89208769e

View File

@ -104,7 +104,7 @@ export class DefaultGlobber implements Globber {
// Search
const traversalChain: string[] = [] // used to detect cycles
let loggedFirstHiddenMessage: boolean = false // if printing hidden, is this the first one
let loggedFirstHiddenMessage = false // if printing hidden, is this the first one
while (stack.length) {
// Pop
const item = stack.pop() as SearchState
@ -131,7 +131,7 @@ export class DefaultGlobber implements Globber {
// Hidden file or directory?
if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
if(!loggedFirstHiddenMessage) {
if (!loggedFirstHiddenMessage) {
core.info(`Ignoring the following hidden files and directories`)
loggedFirstHiddenMessage = true
}