Skip to content

Make rad-ignores.sh independent of checkout directory name - #1340

Open
Fryguy wants to merge 1 commit into
rubysec:masterfrom
Fryguy:rad-ignores-any-directory
Open

Fryguy wants to merge 1 commit into
rubysec:masterfrom
Fryguy:rad-ignores-any-directory

Conversation

@Fryguy

@Fryguy Fryguy commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

The script refused to run unless the current directory was named ruby-advisory-db, and exited 0 when it refused. Forks or CI checkouts with another name silently skipped every ignore.

cd to the repo root relative to the script instead, so it works from any directory and any checkout name.

The script now also exits 1 if the cd fails; it used to exit 0 when refusing.

The script refused to run unless the current directory was named
ruby-advisory-db, and exited 0 when it refused. Forks or CI checkouts
with another name silently skipped every ignore.

cd to the repo root relative to the script instead, so it works from
any directory and any checkout name.

The script now also exits 1 if the cd fails; it used to exit 0 when
refusing.
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