ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 9b311071f16418f4b1b02bbc6b932ef60c675a06
parent 37ff31a8aafde23470cc2069daca1ea666ac11d7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  4 Apr 2014 20:08:50 +0200

svc: use stat -t

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mfs/bin/svc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bin/svc b/fs/bin/svc @@ -54,7 +54,7 @@ runservice() { dir="$2" cmd="$3" - if [ $(ls -la "$dir/$service" | awk '{print $5}') -eq 0 ]; + if [ $(stat -L -t "$dir/$service" | cut -d ' ' -f 2) -eq 0 ]; then "./bare.sh" "$service" "$cmd" 2>&1 >/dev/null & else