til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Ignore shellcheck Error

When you want to ignore a shellcheck rule. You can do this using a comment in your code.

hexToAscii() {
  # shellcheck disable=SC2059
  printf "\x$1"
}

Lifted from shellcheck wiki.

If you want to ignore multiple rules, use comma (,) to separate the rules indicators.

# shellcheck disable=SC2116,SC2086
hash=$(echo ${hash})    # trim spaces

Lifted from shellcheck wiki.

Resources and References