Skip to content

Commit 4272d2e

Browse files
committed
prevent the ASDF plugin check to display anything in the terminal
1 parent 1341265 commit 4272d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macsetup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ function installAsdfPlugin {
539539
local lang="$1"
540540
local version="$2"
541541

542-
if asdf plugin list | grep "$lang" &>/dev/null; then
542+
if asdf plugin list 2>/dev/null | grep -q "$lang"; then
543543
echo $fg[green]"Skipped $fg[blue]asdf$fg[green] plugin $fg[blue]$lang$fg[green] already installed"$reset_color
544544
else
545545
echo $fg[blue]"Installing the $fg[green]asdf$fg[blue] plugin $fg[green]$lang$fg[blue] version $fg[green]$version"$reset_color

0 commit comments

Comments
 (0)