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

Update Cataclysm.sh #79472

Closed

Conversation

wonderinglostsoul44
Copy link

Bash Shebang: Changing to #!/bin/bash ensures that Bash-specific features work as expected.
Robust Directory Handling: The script now checks whether the cd command succeeds and aborts with an error message if it fails.
Dynamic Environment Exports: The exports for the dynamic library and framework paths are performed both for the current shell (for the tiles version) and included in the new Terminal command (for the non-tiles version).
Executable Checks: Added an elif to verify that cataclysm-tiles exists, with an error output if neither executable is found.
Improved Command String: The Terminal launch command now wraps paths in quotes and includes the necessary exports so that the new shell session has the proper environment.

Summary

Category "Brief description"

Purpose of change

Describe the solution

Describe alternatives you've considered

Testing

Additional context

Bash Shebang: Changing to #!/bin/bash ensures that Bash-specific features work as expected.
Robust Directory Handling: The script now checks whether the cd command succeeds and aborts with an error message if it fails.
Dynamic Environment Exports: The exports for the dynamic library and framework paths are performed both for the current shell (for the tiles version) and included in the new Terminal command (for the non-tiles version).
Executable Checks: Added an elif to verify that cataclysm-tiles exists, with an error output if neither executable is found.
Improved Command String: The Terminal launch command now wraps paths in quotes and includes the necessary exports so that the new shell session has the proper environment.
@github-actions github-actions bot added Code: Build Issues regarding different builds and build environments new contributor labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Build Issues regarding different builds and build environments new contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant