From 7a6c936436123e46d674c7199efb754db0695e0b Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Wed, 6 Dec 2023 23:58:22 +0800 Subject: [PATCH] bin/psv.sh: up; #!/bin/bash --- flux/src/bin/psv.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flux/src/bin/psv.sh b/flux/src/bin/psv.sh index bfad6bfa..9775d6dc 100644 --- a/flux/src/bin/psv.sh +++ b/flux/src/bin/psv.sh @@ -1,20 +1,20 @@ -#!/bin/sh +#!/bin/bash cmd=$1 -shit +shift args=$@ # http://b0llix.net/perp/site.cgi?page=perpctl.8 case "$cmd" in status) - if [ "" == "$args" ] + if [ "" == "$args" ]; then perpls else perpstat $args fi ;; start|stop) - if [ "start" == "$cmd" ] + if [ "start" == "$cmd" ]; then perpctl up $args else perpctl down $args @@ -24,7 +24,7 @@ start|stop) # described above are applied to both the main and log services. ;; enable|disable) - if [ "enable" == "$cmd" ] + if [ "enable" == "$cmd" ]; then perpctl A $args else perpctl X $args