Change cache location
This commit is contained in:
		
							
								
								
									
										2
									
								
								motd.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								motd.sh
									
									
									
									
									
								
							@@ -21,7 +21,7 @@ UPTIMECOLOR="\033[0m"                                               # Bash color
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
##### Script config
 | 
					##### Script config
 | 
				
			||||||
#####################################################################
 | 
					#####################################################################
 | 
				
			||||||
CACHEFILE="/tmp/waifu.cache"                                        # to cache waifu state
 | 
					CACHEFILE="$HOME/.cache/waifu.cache"                                # to cache waifu state
 | 
				
			||||||
MOTDPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"    # path to motd folder
 | 
					MOTDPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"    # path to motd folder
 | 
				
			||||||
tput_cols=$(/usr/bin/tput cols)                                     # terminal columns
 | 
					tput_cols=$(/usr/bin/tput cols)                                     # terminal columns
 | 
				
			||||||
WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1))            # count of waifus
 | 
					WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1))            # count of waifus
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user