use exec in serve script

This commit is contained in:
Brian Hicks 2019-04-02 15:26:36 -05:00
parent 3ac6cdf955
commit ce3bfc5b9c

View File

@ -20,7 +20,7 @@ fi
cd "$TARGET"
if python --version | grep -qE '^Python 3'; then
python -m http.server
exec python -m http.server
else
python -m SimpleHTTPServer
exec python -m SimpleHTTPServer
fi