Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

[Bug] Fix systemd State Test #38

Open
1 of 4 tasks
ferricoxide opened this issue Feb 6, 2019 · 0 comments
Open
1 of 4 tasks

[Bug] Fix systemd State Test #38

ferricoxide opened this issue Feb 6, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@ferricoxide
Copy link
Member

Describe the bug
Current systemd state-test will misevaluate due to equality check of string-val to number.

Severity

  • Completely Broken (No work-around evident)
  • Severely Broken (Breaks region-portability)
  • Moderately Broken (Trivial work-around)
  • Nuisance (Functions but untrapped errors can slip through)

Expected behavior
The systemd state-test should be structured to ensure equality-test compares numbers to numbers.

Fix Suggestions

Update code-segment:

[[ $( systemctl is-active multi-user.target )$? -ne 0 ]]

To:

[[ $( systemctl --quiet is-active multi-user.target )$? -ne 0 ]]
@ferricoxide ferricoxide added the bug Something isn't working label Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant