Skip to content

Fix quoted home in swiftly install snippets #1084

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

cmcgee1024
Copy link
Member

The swiftly install snippets with the new website design are quoting the source of the env.sh
script. Inside, there is a ~ character that represents the home directory. Since it is inside
quotes this is not interpreted by the shell. It fails to find a directory called ~ in the current
directory and swiftly isn't added to the PATH. The subsequent rehash is never run either.

Motivation:

Let's improve the initial user experience by fixing the failure.

Modifications:

Use the $HOME environment variable inside the quoted string instead of ~ so that it gets interpolated.

Result:

The instructions should be runnable by new users again.

@shahmishal shahmishal merged commit 3c34b93 into swiftlang:main Jun 13, 2025
3 checks passed
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.

3 participants