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

Small tweaks #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Small tweaks #17

wants to merge 2 commits into from

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Jan 10, 2025

No description provided.

We don't want quick runs in overnight benchmarks.
When run from cron I was using an absolute path for the results dir, but
then we were tacking `../..` onto it, which makes no sense.

Rather than handle both cases, let's just say you have to use an
absolute path.
@@ -40,6 +40,12 @@ fi

RES_DIR=$1; shift

# To simplify path handling, require the results dir to be absolute.
if [ "$(realpath "${RES_DIR}")" != "${RES_DIR}" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the inner "s have any effect here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it allows paths to have spaces, but why would we? Shall we remove them?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I would tend to remove them, because I'm very unsure what they do when nested. Out of curiosity, what does shellcheck say? It tends to be pretty good at these things. If it's happy with it, then I'm probably happy with it too!

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