Skip to content

Commit

Permalink
stop looking for readlink after finding it
Browse files Browse the repository at this point in the history
  • Loading branch information
ap committed Nov 11, 2015
1 parent 3413979 commit 40799b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions libexec/plenv
Expand Up @@ -25,6 +25,7 @@ if [ -z "$READLINK" ]; then
echo "plenv: cannot find readlink - are you missing GNU coreutils?" >&2
exit 1
fi
export READLINK

abs_dirname() {
local cwd="$(pwd)"
Expand Down
6 changes: 0 additions & 6 deletions libexec/plenv-hooks
Expand Up @@ -19,12 +19,6 @@ if [ -z "$PLENV_COMMAND" ]; then
exit 1
fi

READLINK=$(type -p greadlink readlink | while read line; do echo $line; break; done)
if [ -z "$READLINK" ]; then
echo "plenv: cannot find readlink - are you missing GNU coreutils?" >&2
exit 1
fi
realpath() {
local cwd="$(pwd)"
local path="$1"
Expand Down
6 changes: 0 additions & 6 deletions libexec/plenv-init
Expand Up @@ -28,12 +28,6 @@ if [ -z "$shell" ]; then
shell="${shell##*/}"
fi

READLINK=$(type -p greadlink readlink | while read line; do echo $line; break; done)
if [ -z "$READLINK" ]; then
echo "plenv: cannot find readlink - are you missing GNU coreutils?" >&2
exit 1
fi
abs_dirname() {
local cwd="$(pwd)"
local path="$1"
Expand Down

0 comments on commit 40799b9

Please sign in to comment.