We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e71484 commit a59e593Copy full SHA for a59e593
admin/checkservices
@@ -252,7 +252,7 @@ usage() {
252
echo " -s/-S: display (or not) status of restarted service (default: $STATUS)" >&2
253
echo " -u/-U: act (or not) on services in users slice (default: $USER_SLICE)" >&2
254
echo " -z/-Z: serialize (or not) action (default: $SERIALIZE)" >&2
255
- echo " -i 'service_name'.service: list of services to ignore (space separated)" >&2
+ echo " -i 'service_name'.service: ignore a specific service (can be used multiple times)" >&2
256
exit 2
257
}
258
@@ -272,6 +272,8 @@ argparse() {
272
Z) SERIALIZE=0;; z) SERIALIZE=1;;
273
i) if [[ "$OPTARG" == *.service ]]; then
274
IGNORED_SERVICES+=("$OPTARG")
275
+ else
276
+ usage
277
fi
278
;;
279
*) usage;;
0 commit comments