fix: daily email path
This commit is contained in:
		
							parent
							
								
									e416da6aab
								
							
						
					
					
						commit
						d144269927
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								run
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								run
									
										
									
									
									
								
							| 
						 | 
					@ -13,7 +13,7 @@ function task:daily {
 | 
				
			||||||
  # Find the next post date based on the last post in the directory.
 | 
					  # Find the next post date based on the last post in the directory.
 | 
				
			||||||
  local next_date
 | 
					  local next_date
 | 
				
			||||||
  if [[ "${1}" == "next" ]]; then
 | 
					  if [[ "${1}" == "next" ]]; then
 | 
				
			||||||
    next_date=$(ls -1 src/daily-emails  | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
 | 
					    next_date=$(ls -1 src/content/daily-email  | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    next_date="${1}"
 | 
					    next_date="${1}"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue