You've already forked miniflux_lwn
							
							formatting
This commit is contained in:
		
							
								
								
									
										13
									
								
								run.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								run.sh
									
									
									
									
									
								
							@@ -23,11 +23,9 @@ process() {
 | 
				
			|||||||
	curl --fail -s -X PUT "$MURL/v1/entries" \
 | 
						curl --fail -s -X PUT "$MURL/v1/entries" \
 | 
				
			||||||
		--json "$(jo "entry_ids[]=$eid" status=unread)" \
 | 
							--json "$(jo "entry_ids[]=$eid" status=unread)" \
 | 
				
			||||||
		-H "X-Auth-Token: $MINIFLUX_TOKEN"
 | 
							-H "X-Auth-Token: $MINIFLUX_TOKEN"
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main() {
 | 
					main() {
 | 
				
			||||||
 | 
					 | 
				
			||||||
	local w1 w2
 | 
						local w1 w2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if [ "$(date +%A)" = Thursday ]; then
 | 
						if [ "$(date +%A)" = Thursday ]; then
 | 
				
			||||||
@@ -49,12 +47,11 @@ main() {
 | 
				
			|||||||
		mlr --l2n \
 | 
							mlr --l2n \
 | 
				
			||||||
			filter '$title =~ "\[\$\]"' \
 | 
								filter '$title =~ "\[\$\]"' \
 | 
				
			||||||
			'then' filter -s w1="$w1" -s w2="$w2" '$published_at > @w2 && $published_at < @w1' \
 | 
								'then' filter -s w1="$w1" -s w2="$w2" '$published_at > @w2 && $published_at < @w1' \
 | 
				
			||||||
			'then' cut -of id,title | while read -r eid title; do
 | 
								'then' cut -of id,title |
 | 
				
			||||||
 | 
							while read -r eid title; do
 | 
				
			||||||
		echo "processing entry: $eid title: $title"
 | 
								echo "processing entry: $eid title: $title"
 | 
				
			||||||
		process "$eid" "$title"
 | 
								process "$eid" "$title"
 | 
				
			||||||
	done
 | 
							done
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
main
 | 
					main
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user