File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ git pull origin main
102102
103103if [ " $( pgrep -if ' python main.py' ) " ]; then
104104 echo " Killing existing server to run a fresh version"
105- pkill -9 python main.py
105+ pkill -9 -if " python main.py"
106106fi
107107
108108# Remove generated chapters and e-books (in case new one from other branch in there)
@@ -190,7 +190,7 @@ git checkout main
190190
191191if [ " $( pgrep -if ' python main.py' ) " ]; then
192192 echo " Killing server so backgrounded version isn't left there"
193- pkill -9 -f " python main.py"
193+ pkill -9 -if " python main.py"
194194fi
195195
196196echo
Original file line number Diff line number Diff line change 5353
5454if [ " $( pgrep -if ' python main.py' ) " ]; then
5555 echo " Killing existing server to run a fresh version"
56- pkill -9 -f " python main.py"
56+ pkill -9 -if " python main.py"
5757fi
5858
5959if [ " $( pgrep -if ' node ./tools/generate/chapter_watcher' ) " ]; then
6060 echo " Killing existing watcher to run a fresh version"
61- pkill -9 -f " node ./tools/generate/chapter_watcher"
61+ pkill -9 -if " node ./tools/generate/chapter_watcher"
6262fi
6363
6464echo " Installing and testing python environment"
@@ -105,7 +105,7 @@ if [ "${debug}" == "1" ]; then
105105
106106 if [ " $( pgrep -if ' python main.py' ) " ]; then
107107 echo " Killing server to run a fresh version in debug mode"
108- pkill -9 -f " python main.py"
108+ pkill -9 -if " python main.py"
109109 fi
110110
111111 echo " Starting website in foreground mode so it reloads on file changes"
Original file line number Diff line number Diff line change 99# It is useful as sometimes these are backgrounded so this offers a quick way of stopping them.
1010#
1111
12- pkill -9 -f " python main.py"
13- pkill -9 -f " ./tools/generate/chapter_watcher"
12+ pkill -9 -if " python main.py"
13+ pkill -9 -if " ./tools/generate/chapter_watcher"
1414
1515exit 0
You can’t perform that action at this time.
0 commit comments