From ccfd935533955423351d7227380f9b4e60c7a1ae Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Sat, 24 Jul 2021 12:55:40 +0200 Subject: [PATCH] clarified function --- motd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motd.sh b/motd.sh index 1601f87..8d17e80 100755 --- a/motd.sh +++ b/motd.sh @@ -12,7 +12,7 @@ MINTERMWIDTH=200 # minimal width of term, to display motd WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus -output() { +function output() { val=0 if [ $1 == "true" ]; then val=$(($val + 1)); fi if [ $2 == "true" ]; then val=$(($val + 2)); fi