Skip to content

Escape whitespace in build script #84

Description

@thetw

I'm running into an issue when trying to use the build script on macOS.
My home folder is located on a non-standard location and the drives name includes whitespace.

$ echo $PWD         
/Volumes/Storage SSD/Users/thetw/Desktop/sharp-libvips

When i try to run the build script, every command that involves the unescaped absolute path to the build folder results in errors like:

mkdir: /Volumes/Storage: Permission denied
mkdir: SSD/Users/thetw/Desktop/sharp-libvips/build: No such file or directory

As you can see the unescaped path got split at the whitespace character which obviously creates invalid paths.

Do you have a clue how we could fix that? The only way that came to my mind so far is to properly escape all occurrences of the path invocations in the build script with " or '... or do i miss something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions