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

Commit f76598b

Browse files
committed
Simplify shared library function loading
1 parent 42c92b6 commit f76598b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/php-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ lib() {
3232

3333
if [ "$1" == "--$FUNCNAME" ]; then
3434
declare -f "$FUNCNAME"
35+
echo "$FUNCNAME \"\$1\";"
3536
exit
3637
fi
3738
}

bin/phpenv-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ -z "$PHPENV_ROOT" ]; then
1212
fi
1313

1414
# Load shared library functions
15-
eval "$(php-build --lib)" && lib
15+
eval "$(php-build --lib)"
1616

1717
usage() {
1818
{ echo "usage: phpenv install [-k|--keep] [-v|--verbose] VERSION"

0 commit comments

Comments
 (0)