From bb0634e8fa3f2f939dcb31fc93e8e832590f1619 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 1 Sep 2021 12:24:04 -0500 Subject: [PATCH] Make compatible with older versions of ZSH --- cowsay-cows.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowsay-cows.plugin.zsh b/cowsay-cows.plugin.zsh index 5c0f755..7ebe001 100644 --- a/cowsay-cows.plugin.zsh +++ b/cowsay-cows.plugin.zsh @@ -1,5 +1,5 @@ # Only add stuff if cowsay is installed -if [[ $(command -v cowsay) ]]; then +if [ $(command -v cowsay) ]; then # Add the originally present cows to COWPATH for COW in $(find $(whereis cowsay | awk '{print $3}') -name "*.cow" | xargs dirname | uniq); do export COWPATH=$COW:$COWPATH