mirror of
https://github.com/MillironX/cowsay-cows.git
synced 2024-11-24 15:29:55 +00:00
Make compatible with older versions of ZSH
This commit is contained in:
parent
1a4f34cdff
commit
bb0634e8fa
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Only add stuff if cowsay is installed
|
# Only add stuff if cowsay is installed
|
||||||
if [[ $(command -v cowsay) ]]; then
|
if [ $(command -v cowsay) ]; then
|
||||||
# Add the originally present cows to COWPATH
|
# Add the originally present cows to COWPATH
|
||||||
for COW in $(find $(whereis cowsay | awk '{print $3}') -name "*.cow" | xargs dirname | uniq); do
|
for COW in $(find $(whereis cowsay | awk '{print $3}') -name "*.cow" | xargs dirname | uniq); do
|
||||||
export COWPATH=$COW:$COWPATH
|
export COWPATH=$COW:$COWPATH
|
||||||
|
|
Loading…
Reference in a new issue