clarified function
This commit is contained in:
parent
dfd03e35c6
commit
ccfd935533
2
motd.sh
2
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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user