We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
which
1 parent ca4028f commit b53f9efCopy full SHA for b53f9ef
1 file changed
installer.sh
@@ -24,7 +24,7 @@ EOB
24
COMPOSER_DIR=$HOME/.composer
25
26
# Abort install if wp-cli is already installed via ./utils/dev-build
27
-where=$(which wp)
+where=$(which wp 2>/dev/null)
28
if [ $? -eq 0 ]; then
29
if [ "$COMPOSER_DIR/bin/wp" != "$where" ]; then
30
echo "warning: the \`wp\` command is already available elsewhere: $where" 1>&2
0 commit comments