Skip to content

Using setup.sh on POSIX compliant Unix systems (e.g. macOS) #106

@paul-jarrow

Description

@paul-jarrow

It looks like a few of the shell commands in the setup script won't run correctly on macOS.

I've found that I can solve this by modifying the script slightly:

setup.sh:

sed -i .orig 's/GIT_PACK_FILE_MODE 0444/GIT_PACK_FILE_MODE 0644/g' libgit2/src/libgit2/pack.h
sed -i .orig 's/GIT_OBJECT_FILE_MODE 0444/GIT_OBJECT_FILE_MODE 0644/g' libgit2/src/libgit2/odb.h

Adding the designation .orig after the -i flag seems to do the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions