Skip to content

Commit c2c2e20

Browse files
committed
stop local-lib-installer stdout breaking local-lib
1 parent b168128 commit c2c2e20

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bin/local-lib

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ if [ -z "$1" ]; then
77
ll_roots=("$(mktemp -d -t local-lib-XXXXXX)")
88
else
99
for lib; do
10-
[ -z "$LL_NO_INSTALL" ] && $HELPERS_ROOT/bin/local-lib-installer "$lib"
11-
ll_roots+=("$PERLBREW_HOME/libs/$PERLBREW_PERL@$lib")
10+
if [ -z "$LL_NO_INSTALL" ]; then
11+
# redirect since output of this gets eval-ed
12+
if $HELPERS_ROOT/bin/local-lib-installer "$lib" 1>&2; then
13+
ll_roots+=("$PERLBREW_HOME/libs/$PERLBREW_PERL@$lib")
14+
fi
15+
fi
1216
done
1317
fi
1418

0 commit comments

Comments
 (0)