Skip to content

Commit b53f9ef

Browse files
committed
which is not silent on Linux
1 parent ca4028f commit b53f9ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ EOB
2424
COMPOSER_DIR=$HOME/.composer
2525

2626
# Abort install if wp-cli is already installed via ./utils/dev-build
27-
where=$(which wp)
27+
where=$(which wp 2>/dev/null)
2828
if [ $? -eq 0 ]; then
2929
if [ "$COMPOSER_DIR/bin/wp" != "$where" ]; then
3030
echo "warning: the \`wp\` command is already available elsewhere: $where" 1>&2

0 commit comments

Comments
 (0)