Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: fix permissions, results directory creation #1

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

tommilligan
Copy link
Contributor

Fixes and comments that will be useful to other new users.

Found testing sharkdp/fd#497

regression.sh Outdated

rm -f regression-results/*.md
mkdir -p "$RESULT_DIR"
rm -f $RESULT_DIR/*.md
Copy link
Owner

@sharkdp sharkdp Oct 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always get a little bit nervous when I see rm with unquoted variables. Just to be safe (if someone changes RESULTS_DIR to my folder, for example), we should quote it:

rm -f "$RESULTS_DIR"/*.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough - I actually wasn't aware you could partially quote a bash expansion, so 👍 to learning things

@sharkdp
Copy link
Owner

sharkdp commented Oct 10, 2019

Thank you very much for this!

@tommilligan tommilligan force-pushed the fix-regression-script branch from 3183f56 to 6da7a63 Compare October 10, 2019 20:27
@sharkdp sharkdp merged commit dd19027 into sharkdp:master Oct 10, 2019
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.

2 participants