Update run.sh

This commit is contained in:
암냥 2025-02-02 14:15:09 +09:00 committed by GitHub
commit f573015254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,9 @@
if [ ! -d "temp" ]; then if [ ! -d "temp" ]; then
mkdir temp mkdir temp
fi fi
if [ ! -d "temp/auth" ]; then
mkdir temp/auth
fi
echo "Debug: Script started at $(date)" >> ./temp/debug.log echo "Debug: Script started at $(date)" >> ./temp/debug.log
echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log echo "Debug: Current directory is $(pwd)" >> ./temp/debug.log
echo "Debug: User is $(whoami)" >> ./temp/debug.log echo "Debug: User is $(whoami)" >> ./temp/debug.log
@ -16,6 +19,7 @@ cd ${BOT_ROOT}
# If doesn't have temp/cookies.json, create it # If doesn't have temp/cookies.json, create it
if [ ! -f "./temp/auth/cookies.json" ]; then if [ ! -f "./temp/auth/cookies.json" ]; then
mkdir temp/auth
python3 library/init-auth.py python3 library/init-auth.py
fi fi