Fix describe, zap and status, close #1

This commit is contained in:
~lucidiot 2022-02-05 13:15:19 +01:00
parent cb3a89ddb6
commit 7030496c97
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ capitalized="$(printf %s "$verb" | head -c1 | tr '[[:lower:]]' '[[:upper:]]')$(p
echo '#!/sbin/openrc-run
name="'"$verb"'"
description="'"$capitalized"' another OpenRC service, for compatibility with systemctl'"'"'s syntax."
extra_commands="$(find $(dirname "$RC_SERVICE") -mindepth 1 -maxdepth 1 -type f -executable -not -name "$RC_SVCNAME" -not -name local -not -name function -not -name break -not -name continue -not -name eval -not -name exec -not -name exit -not -name export -not -name readonly -not -name return -not -name set -not -name shift -not -name times -not -name trap -not -name unset | cut -d/ -f4- | grep '"'"'^[a-zA-Z_][a-zA-Z0-9_]*$'"'"')"
extra_commands="$(find $(dirname "$RC_SERVICE") -mindepth 1 -maxdepth 1 -type f -executable -not -name "$RC_SVCNAME" -not -name local -not -name function -not -name break -not -name continue -not -name eval -not -name exec -not -name exit -not -name export -not -name readonly -not -name return -not -name set -not -name shift -not -name times -not -name trap -not -name unset -not -name describe -not -name status -not -name zap | cut -d/ -f4- | grep '"'"'^[a-zA-Z_][a-zA-Z0-9_]*$'"'"')"
for command in $extra_commands; do
eval "description_$command=\"'"$capitalized"' the $command service.\"
$command () {