mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 20:32:22 +00:00
Export PS4 when RBENV_DEBUG is set for more informative debug output
This commit is contained in:
parent
045f6c1bce
commit
892aea138e
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
[ -n "$RBENV_DEBUG" ] && set -x
|
||||
|
||||
|
||||
if [ -n "$RBENV_DEBUG" ]; then
|
||||
export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] '
|
||||
set -x
|
||||
fi
|
||||
resolve_link() {
|
||||
$(type -p greadlink readlink | head -1) "$1"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue