HomeClusterLabs Projects

Fix several shellcheck warnings
9712d770a698Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix several shellcheck warnings

  • Check Check exit code directly [SC2181]
  • Double quote to prevent globbing and word splitting. [SC2086]
  • In POSIX sh, == in place of = is undefined. [SC3014]
  • Declare and assign separately to avoid masking return values. [SC2155]
  • In POSIX sh, echo flags are undefined. [SC3037]
  • Use $(...) notation instead of legacy backticks .... [SC2006]
  • $/${} is unnecessary on arithmetic variables. [SC2004]

Details

Provenance
clobranoAuthored on Tue, Apr 22, 9:24 AM
Parents
rRe35dc26c2ed7: podman_start fixes
Branches
Unknown
Tags
Unknown

Event Timeline