1
0
Fork 0
mirror of https://github.com/MillironX/cowsay-cows.git synced 2024-11-21 22:36:04 +00:00

Don't get in the user's way if cowsay isn't installed

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-10-12 15:08:01 -05:00
parent 160539efea
commit 1d06f044ba
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -1,5 +1,3 @@
# Only add stuff if cowsay is installed
if [ $(command -v cowsay) ]; then
# Add default install cows to COWPATH # Add default install cows to COWPATH
# Search for cows in $PREFIX/share/cows. According to the original repo # Search for cows in $PREFIX/share/cows. According to the original repo
# (https://github.com/tnalpgge/rank-amateur-cowsay), this is the place to find # (https://github.com/tnalpgge/rank-amateur-cowsay), this is the place to find
@ -21,7 +19,3 @@ if [ $(command -v cowsay) ]; then
alias bullsay="cowsay -f bull" alias bullsay="cowsay -f bull"
alias steersay="cowsay -f longhorn" alias steersay="cowsay -f longhorn"
alias tuxsay="cowsay -f tux" alias tuxsay="cowsay -f tux"
else
# Direct the user to install cowsay
alias cowsay="echo \"cowsay needs to be installed via apt, dnf, or the like\""
fi