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

swiftly-install.sh Handle paths containing spaces #135

Conversation

BrianHenryIE
Copy link

@BrianHenryIE BrianHenryIE commented Jul 16, 2024

In #134, the installer does not work on MacOS because of the space in the $HOME/Library/Application Support/swiftly path.

The first problem was that bash function calls split arguments by spaces. Using $@ instead of $1 fixed this.

Then the path added to the source commands needed to be quoted.

I don't know what effect these changes will have when run on Linux.

@cmcgee1024
Copy link
Member

We're in the process of moving the installation logic out of the shell script and into swiftly itself, which should fix the spacing issue since the Swift built-in path handling is immune to this kind of problem in shell scripts. See #127 for more details.

@adam-fowler
Copy link
Contributor

Now that #127 has been merged we can probably close this

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