mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Kill SimpleHTTPServer also on OS X
This commit is contained in:
parent
67c576add6
commit
e006cf04bb
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ function shut_down(){
|
|||
if [[ -f $$SRV_PID ]]; then
|
||||
PID=$$(cat $$SRV_PID)
|
||||
PROCESS=$$(ps -p $$PID | tail -n 1 | awk '{print $$4}')
|
||||
if [[ $$PROCESS == python ]]; then
|
||||
if [[ $$PROCESS != "" ]]; then
|
||||
echo "Killing SimpleHTTPServer"
|
||||
kill $$PID
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue