clarified function

This commit is contained in:
sevi-kun 2021-07-24 12:55:40 +02:00
parent dfd03e35c6
commit ccfd935533

View File

@ -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 WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus
output() { function output() {
val=0 val=0
if [ $1 == "true" ]; then val=$(($val + 1)); fi if [ $1 == "true" ]; then val=$(($val + 1)); fi
if [ $2 == "true" ]; then val=$(($val + 2)); fi if [ $2 == "true" ]; then val=$(($val + 2)); fi