HomeClusterLabs Projects

Refactor: extra: use best practices for conditionals in agent code

Description

Refactor: extra: use best practices for conditionals in agent code

In particular:

  • use numeric comparisons (-ne/-eq) where appropriate
  • use -n/-z instead of constructs like "x$VAR" != "x"
  • use -n instead of ! -z

Details

Provenance
kgaillotAuthored on Jul 17 2019, 5:37 PM
Parents
rP6158d48df154: Refactor: extra: use $(...) instead of `...` in agent code
Branches
Unknown
Tags
Unknown

Event Timeline