Update run.sh
This commit is contained in:
parent
96748fb97f
commit
f573015254
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
|||
if [ ! -d "temp" ]; then
|
||||
mkdir temp
|
||||
fi
|
||||
if [ ! -d "temp/auth" ]; then
|
||||
mkdir temp/auth
|
||||
fi
|
||||
echo "Debug: Script started at $(date)" >> ./temp/debug.log
|
||||
echo "Debug: Current directory is $(pwd)" >> ./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 [ ! -f "./temp/auth/cookies.json" ]; then
|
||||
mkdir temp/auth
|
||||
python3 library/init-auth.py
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue