Skip to content

Commit

Permalink
rc.subr(8): run trailing-whitespace-fixer
Browse files Browse the repository at this point in the history
This change deletes benign trailing whitespace from rc.subr, making
future non-stylistic changes easier to spot.

MFC after:	1 week
  • Loading branch information
ngie-eign committed May 11, 2023
1 parent 0661f93 commit 4e9041a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libexec/rc/rc.subr
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ rc_service="$0"

# list_vars pattern
# List variables matching glob pattern.
#
#
list_vars()
{
# Localize 'set' option below.
Expand Down Expand Up @@ -444,7 +444,7 @@ sort_lite()
local curitem curitem_orig curitem_mod curitem_haskey
local dest dest_orig dest_mod dest_haskey
local d gt n
local i=1
local i=1
while [ $i -le $nitems ]; do
curitem_haskey=1 # Assume sort field (-k POS) exists
eval curitem=\"\$src_$i\"
Expand Down Expand Up @@ -1093,19 +1093,19 @@ run_rc_command()
echo "$desc"
fi
;;

extracommands)
echo "$extra_commands"
;;

enable)
_out=$(/usr/sbin/sysrc -vs "$name" "$rcvar=YES") &&
echo "$name enabled in ${_out%%:*}"
echo "$name enabled in ${_out%%:*}"
;;

disable)
_out=$(/usr/sbin/sysrc -vs "$name" "$rcvar=NO") &&
echo "$name disabled in ${_out%%:*}"
echo "$name disabled in ${_out%%:*}"
;;

delete)
Expand Down

0 comments on commit 4e9041a

Please sign in to comment.