From 15692c2b5b0af2f9c2f6328443e6b75848827e19 Mon Sep 17 00:00:00 2001 From: nivong Date: Sun, 14 Aug 2016 15:43:52 +0200 Subject: [PATCH 1/4] Update run.sh --- run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.sh b/run.sh index fa6d8ffab1..aa82c78d1d 100755 --- a/run.sh +++ b/run.sh @@ -13,6 +13,12 @@ echo "There's no "$filename" file. Please use ./setup.sh -c to creat one." fi while true do +echo "Checking for updates...." +git pull +git submodule update --init --recursive +git submodule foreach git pull origin master +read -p "WARNING: Verify if the Config.json file got updated. If Yes, check if your modifications are still valid before proceeding. Waiting 20 seconds so you can verify and stop the bot. +" -r -s -n1 -t 20 python pokecli.py -cf $filename echo `date`" Pokebot "$*" Stopped." read -p "Press any button or wait 20 seconds to continue. From c26df4bae996415b4c1634bffe592551c3f376af Mon Sep 17 00:00:00 2001 From: nivong Date: Sun, 14 Aug 2016 15:46:48 +0200 Subject: [PATCH 2/4] Update run.sh --- run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.sh b/run.sh index aa82c78d1d..eb0d8a23cc 100755 --- a/run.sh +++ b/run.sh @@ -19,6 +19,8 @@ git submodule update --init --recursive git submodule foreach git pull origin master read -p "WARNING: Verify if the Config.json file got updated. If Yes, check if your modifications are still valid before proceeding. Waiting 20 seconds so you can verify and stop the bot. " -r -s -n1 -t 20 +done +exit 0 python pokecli.py -cf $filename echo `date`" Pokebot "$*" Stopped." read -p "Press any button or wait 20 seconds to continue. From abf2b80d2a62d2dd6ea31dde65bc626f07e8826a Mon Sep 17 00:00:00 2001 From: nivong Date: Sun, 14 Aug 2016 15:52:01 +0200 Subject: [PATCH 3/4] Update run.sh --- run.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/run.sh b/run.sh index eb0d8a23cc..aa82c78d1d 100755 --- a/run.sh +++ b/run.sh @@ -19,8 +19,6 @@ git submodule update --init --recursive git submodule foreach git pull origin master read -p "WARNING: Verify if the Config.json file got updated. If Yes, check if your modifications are still valid before proceeding. Waiting 20 seconds so you can verify and stop the bot. " -r -s -n1 -t 20 -done -exit 0 python pokecli.py -cf $filename echo `date`" Pokebot "$*" Stopped." read -p "Press any button or wait 20 seconds to continue. From 6ab733c0c961ddd803902403f08943161ecb9cd3 Mon Sep 17 00:00:00 2001 From: nivong Date: Sun, 14 Aug 2016 16:13:55 +0200 Subject: [PATCH 4/4] also check for requirements updates. --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index aa82c78d1d..ca08d880a8 100755 --- a/run.sh +++ b/run.sh @@ -17,6 +17,9 @@ echo "Checking for updates...." git pull git submodule update --init --recursive git submodule foreach git pull origin master +source bin/activate +pip install -r requirements.txt --upgrade +pip install -r requirements.txt read -p "WARNING: Verify if the Config.json file got updated. If Yes, check if your modifications are still valid before proceeding. Waiting 20 seconds so you can verify and stop the bot. " -r -s -n1 -t 20 python pokecli.py -cf $filename