removed redirects to stdout

This commit is contained in:
Emma Tebibyte 2023-03-30 23:08:29 -04:00
parent b7c712d092
commit fc48abb56f
Signed by: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -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