Skip to content

Change ROOT_DIR get method to BASH_SOURCE[0] #2

Description

@FailProger

Problem

In scripts ROOD_DIR get by dirname "$0"', but it don't work if run script with source`.

Solution

Get ROOT_DIR with dirname "${BASH_SOURCE[0]}"

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions