fs

morpheus filesystem files
git clone git://git.2f30.org/fs
Log | Files | Refs

commit a14a4a5b19836f2c0a7d9df7dfe28a5d227b2ddc
parent 4f72eb7cfff6a1eb5996b8fba7fd04d1a6eda03c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  4 Apr 2014 19:53:01 +0200

svc: use stat -t

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

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

diff --git a/bin/svc b/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