Skip to content

Commit

Permalink
Remove the logs directory (#450)
Browse files Browse the repository at this point in the history
* Optimize the script

* Optimize the script

* Optimize the script

* Optimize the script

* delete wechat

* delete wechat

* delete wechat

* Remove the logs directory
  • Loading branch information
skiffer-git authored Mar 7, 2024
1 parent e21c252 commit 5f334e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/check-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ SCRIPTS_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
OPENIM_ROOT=$(dirname "${SCRIPTS_ROOT}")/..
source $SCRIPTS_ROOT/util.sh


logs_dir="$SCRIPTS_ROOT/../_output/logs"
DOCKER_LOG_FILE="$logs_dir/chat-docker.log"

if is_running_in_container; then
Expand All @@ -35,11 +37,11 @@ if [ "$1" == "--print-screen" ]; then
PRINT_SCREEN=1
fi

mkdir -p ${SCRIPTS_ROOT}/../logs
#mkdir -p ${SCRIPTS_ROOT}/../logs

if [ -z "$PRINT_SCREEN" ]; then
exec >> ${SCRIPTS_ROOT}/../logs/chat_$(date '+%Y%m%d').log 2>&1
fi
#if [ -z "$PRINT_SCREEN" ]; then
# exec >> ${SCRIPTS_ROOT}/../logs/chat_$(date '+%Y%m%d').log 2>&1
#fi

#Include shell font styles and some basic information
source $SCRIPTS_ROOT/style-info.sh
Expand Down

0 comments on commit 5f334e0

Please sign in to comment.