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 fi
# create log directory # create log directory
mkdir -p "$LOG_DIR" 2>&1 mkdir -p "$LOG_DIR"
# move the previous log to “latest” log # 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 # 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 the number of previous log files
count=1 count=1
@ -30,7 +30,7 @@ for file in "$LOG_DIR/sway.log.*"; do
done done
# move the previous log to the log count number # 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 # 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 # xdg_desktop_portal implementation run as the provider of file choosers and the