mirror of
https://github.com/GRFreire/nthmail.git
synced 2026-01-10 13:29:37 +00:00
change run-web.sh to restart to pkg/ changes
This commit is contained in:
parent
5e0e362e47
commit
f547eb161e
@ -1,10 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
watch_dir="cmd/web_server"
|
|
||||||
pid=0
|
pid=0
|
||||||
|
|
||||||
get_ts() {
|
get_ts() {
|
||||||
stat "$watch_dir" | grep Modify | awk '{$1=""; print $0}' | sed 's/^ //g'
|
stat cmd/web_server pkg/** | grep Modify | awk '{$1=""; print $0}' | sed 's/^ //g' | sort -r | head -1
|
||||||
}
|
}
|
||||||
|
|
||||||
run_server() {
|
run_server() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user