removed redirects to stdout
This commit is contained in:
		
							parent
							
								
									b7c712d092
								
							
						
					
					
						commit
						fc48abb56f
					
				@ -15,13 +15,13 @@ if test -z "$LOG_DIR"; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# create log directory
 | 
			
		||||
mkdir -p "$LOG_DIR" 2>&1
 | 
			
		||||
mkdir -p "$LOG_DIR"
 | 
			
		||||
 | 
			
		||||
# move the previous log to “latest” log 
 | 
			
		||||
mv "$LOG_DIR/sway.log" "$LOG_DIR/sway.log.latest" 2>&1
 | 
			
		||||
mv "$LOG_DIR/sway.log" "$LOG_DIR/sway.log.latest"
 | 
			
		||||
 | 
			
		||||
# print date and time information at the top of the log file
 | 
			
		||||
date '+%Y-%d-%mT%T %Z' >"$LOG_DIR/sway.log" 2>&1
 | 
			
		||||
date '+%Y-%d-%mT%T %Z' >"$LOG_DIR/sway.log"
 | 
			
		||||
 | 
			
		||||
# count the number of previous log files
 | 
			
		||||
count=1
 | 
			
		||||
@ -30,7 +30,7 @@ for file in "$LOG_DIR/sway.log.*"; do
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
# move the previous log to the log count number
 | 
			
		||||
mv "$LOG_DIR/sway.log.latest" "$LOG_DIR/sway.log.$count" 2>&1
 | 
			
		||||
mv "$LOG_DIR/sway.log.latest" "$LOG_DIR/sway.log.$count"
 | 
			
		||||
 | 
			
		||||
# run the sway desktop with KDE set as the current desktop to allow the Plasma
 | 
			
		||||
# xdg_desktop_portal implementation run as the provider of file choosers and the
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user