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

[Bug] Fix systemd State Test #38

@ferricoxide

Description

@ferricoxide

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 ]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions