commit c1d252eadf5e2c0baa45447c4ea157c178272024 parent 173fb23fa582b95c68bf8fb26af3280ac5bb50ee Author: Giygas <mvk@girlpoison.org> Date: Fri, 21 Jun 2024 01:46:55 +0200 Ignore * in session entry Diffstat:
M | abducate | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/abducate b/abducate @@ -32,7 +32,7 @@ shift $((OPTIND-1)) [ "$1" ] && SERVE=$1 && shift; [ ! "$LABEL" ] && LABEL=$SERVE; -read _ _ _ PID _ <<<$(abduco | sed -n '2,$p' | awk -v label=$LABEL '$NF==label && $1!="+"') +read _ _ _ PID _ <<<$(abduco | sed -n '2,$p' | awk -v label=$LABEL '$1=="*"{$1=""} $NF==label && $1!="+"') if [ "$WHAT" = "toggle" ]; then [ $PID ] && WHAT="stop" || WHAT="start"; fi case $WHAT in