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

bin/safeRun.sh: Fix try: not found bug #4935

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Conversation

rhansen
Copy link
Member

@rhansen rhansen commented Mar 10, 2021

This fixes a copy+paste bug introduced in commit 8b28e00 (v1.8.8).

Fixes #4930.

cc @ldidry

This fixes a copy+paste bug introduced in commit
8b28e00 (v1.8.8).
MY_DIR=$(try cd "${0%/*}" && try pwd -P) || exit 1
try cd "${MY_DIR}/../.."
MY_DIR=$(cd "${0%/*}" && pwd -P) || exit 1
cd "${MY_DIR}/../.." || exit 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
cd "${MY_DIR}/../.." || exit 1
cd "${MY_DIR}/../.." || fatal "Couldn't go to ${MY_DIR}/../.."

Copy link
Contributor

Choose a reason for hiding this comment

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

Otherwise, looks good to me. Thanks!

Copy link
Member Author

@rhansen rhansen Mar 10, 2021

Choose a reason for hiding this comment

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

I'd rather define try in this file than use fatal. I'm doing neither to fix this bug because I prefer consistency with the other scripts in this same directory. (That cd should never fail anyway.)

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem 🙂

@rhansen rhansen merged commit d261028 into develop Mar 10, 2021
@rhansen rhansen deleted the rhansen-saferun-try branch March 10, 2021 09:49
@rhansen
Copy link
Member Author

rhansen commented Mar 10, 2021

Thanks for the bug report and the review @ldidry!

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.

Can’t run Etherpad after upgrade to 1.8.12 : try: not found
2 participants