Skip to content
This repository was archived by the owner on Dec 19, 2020. It is now read-only.
This repository was archived by the owner on Dec 19, 2020. It is now read-only.

Wit Bash Script Can't Handle Symlinks #212

Description

The bash magic used by the wit bash script to locate itself doesn't work if symbolic links are involved. This comes up if using something like GNU stow for local "package management".

The following works great on Linux, but will not work on OSX as there's no readlink -f for OSX:

script_dir="$(dirname "$(readlink -f "$0")")"

See: https://unix.stackexchange.com/a/17500

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions