File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
usr/libexec/usability-misc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 '"
You can’t perform that action at this time.
0 commit comments