clarified function
This commit is contained in:
		
							
								
								
									
										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 | ||||
|  | ||||
| output() { | ||||
| function output() { | ||||
|   val=0 | ||||
|   if [ $1 == "true" ]; then val=$(($val + 1)); fi | ||||
|   if [ $2 == "true" ]; then val=$(($val + 2)); fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user