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

Add error-handling, whitespace-safety, and Rosetta support to scripts/ccl & scripts/ccl64 #419

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gwerbin
Copy link

@gwerbin gwerbin commented Jul 24, 2022

I noticed that on my ARM Mac system, the ccl64 script had a fall-through case, which led to un-set shell parameters and eventually a confusing error message.

This PR patches the ccl and ccl64 scripts to avoid such errors.

I also hard-coded Rosetta support into the case tree by using the x86-64 settings when ARM64 is detected and the environment variable CCL_USE_ROSETTA=1. I thought it was safer to require "opt-in" than "opt-out", given that there are apparently some problems running CCL under Rosetta (e.g. #356).

echo "Unsupported architecture"
exit 1 ;;
esac ;;
Linux)
Copy link

Choose a reason for hiding this comment

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

There might be an indentation issue here (or GitHub is not displaying things correctly).

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