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

[misc] Make env.sh source'able not only in ZSH but also in Bash #758

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Set project root directory to use absolute paths below.
export PRJ_ROOT_DIR=""
if [ "$GITHUB_ACTIONS" = "true" ]; then
export PRJ_ROOT_DIR="$GITHUB_WORKSPACE"
PRJ_ROOT_DIR="$GITHUB_WORKSPACE"
else
export PRJ_ROOT_DIR="$(dirname $(realpath "$0"))"
if [ "$0" = "-bash" ]; then
PRJ_ROOT_DIR="$(dirname "$(realpath ${BASH_SOURCE[0]})")"
else
PRJ_ROOT_DIR="$(dirname "$(realpath "$0")")"
fi
fi

# Set path to implementations
Expand Down
Loading