Skip to content

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

Merged
rhansen merged 1 commit intodevelopfrom
rhansen-saferun-try
Mar 10, 2021
Merged

bin/safeRun.sh: Fix try: not found bug#4935
rhansen merged 1 commit intodevelopfrom
rhansen-saferun-try

Conversation

@rhansen
Copy link
Copy Markdown
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).
Comment thread src/bin/safeRun.sh
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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