Skip to content

Commit dda77df

Browse files
committed
Merge remote-tracking branch 'ArrayBolt3/arraybolt3/trixie'
2 parents 627f132 + e72bf27 commit dda77df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

usr/libexec/usability-misc/check-user-slice-on-shutdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ while (( counter < 10 )); do
1919
## TODO: Add a comment: Is '2>&1' a good idea here?
2020
systemd_cgls_output="$(systemd-cgls --no-pager --full --unit user.slice)"
2121
number_of_lines="$(wc -l <<< "$systemd_cgls_output")"
22-
if [ "$number_of_lines" == '0' ]; then
23-
printf '%s\n' "$0: ERROR: Number of lines: '$number_of_lines' - Existing." >&2
22+
if [ "$number_of_lines" = '0' ]; then
23+
printf '%s\n' "$0: ERROR: Number of lines: '$number_of_lines' - Exiting." >&2
2424
exit 1
2525
fi
26-
if [ "$number_of_lines" == '1' ]; then
26+
if [ "$number_of_lines" = '1' ]; then
2727
## Example systemd_cgls_output:
2828
## > Unit user.slice (/user.slice):
2929
printf '%s\n' "$0: INFO: Number of lines: '$number_of_lines'"

0 commit comments

Comments
 (0)