commit c8c3f179edb491930e48246f523975e59c9f2253
parent 622af200d38dc1393af611e3f883c51b75e5bd40
Author: mrgrouse <bdmfegys@duck.com>
Date: Sun, 3 Aug 2025 04:19:34 -0400
fix case statement's default case in bare.sh
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/svc/bare.sh b/svc/bare.sh
@@ -1,4 +1,4 @@
-#!/home/mrgrouse/.local/src/static-linux-binaries/skarnet/execline/execlineb -S1
+#!/usr/bin/execlineb -S1
# do execlineb -WS1 for testing (errors out on bad syntax)
# this was an attempt to define SERVICE as the same as argv[0] but didn't work for some reason
#foreground {
@@ -39,4 +39,4 @@ case -N -- $1
{
"-s" { if { eltest -v PID } exec $bins $PARAMS } # if $PID is empty, run $bins $PARAMS
"-k" { if { eltest ! -v PID } kill -9 $PID } # if $PID isn't empty, run kill -9 $PID &>/dev/null
- } { foreground { /bin/printf "usage: %s -s|-k\n" $0 } exit 1 }
+ } foreground { /bin/printf "usage: %s -s|-k\n" $0 } exit 1
+\ No newline at end of file