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

Fix shell script ./models/download-ggml-model.sh to handle spaces and special characters in paths #677

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

be-next
Copy link
Contributor

@be-next be-next commented Mar 28, 2023

This pull request addresses an issue with the get_script_path function in the shell script ./models/download-ggml-model.sh, where it previously failed to handle spaces and special characters in directory paths correctly.

Changes:

  • Added double quotes around variables and commands in the get_script_path function to ensure proper parsing of paths with spaces and special characters.

This fix should ensure that the script works correctly even when executed from directories with spaces and special characters in their paths.

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
@ggerganov ggerganov merged commit 18e6fb0 into ggerganov:master Mar 29, 2023
anandijain pushed a commit to anandijain/whisper.cpp that referenced this pull request Apr 28, 2023
…gerganov#677)

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
…gerganov#677)

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
…gerganov#677)

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
…gerganov#677)

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
…gerganov#677)

This commit modifies the `get_script_path` function to correctly handle
spaces and special characters in directory paths. The fix involves adding
double quotes around variables and commands where needed to ensure proper
parsing of paths with spaces and special characters.
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