Skip to content

Use nullglob in bash to avoid matching empty globs#25

Open
jevinskie wants to merge 1 commit into
blacktop:mainfrom
jevinskie:jev/bug/bash-empty-glob
Open

Use nullglob in bash to avoid matching empty globs#25
jevinskie wants to merge 1 commit into
blacktop:mainfrom
jevinskie:jev/bug/bash-empty-glob

Conversation

@jevinskie

Copy link
Copy Markdown

Otherwise:

for SCRIPT in "${PATCH_DIR}"/*.sh; do
    running "Running script: ${SCRIPT}"
    bash "${SCRIPT}"
done

will run the body with SCRIPT='"${PATCH_DIR}"/*.sh' when there are no shell files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant