Skip to content

Bash script xargs command is unnecessary #772

@skrmgrm

Description

@skrmgrm

generate-cards.sh

echo "$OUTPUT_FILE generated successfully with $(ls -1 $CARDS_DIR/*.html | wc -l | xargs) files."

xargs expands to arguments, but since it is piped with a number, and there is no argument, it just prints what "wc -l" is supposed to print

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions