alsa-utils/alsa-info
wileyhy 37e396cab4 alsa-info.sh: uname - reduce execs by four, and eliminate a logic bug
Per `info uname`, `uname` always prints its data in the same order.
Also, "note that A && B || C is not if-then-else. C may run when A is true."
https://www.shellcheck.net/wiki/SC2015

set -x; read -r KERNEL_VERSION < <(uname -v); smp=x; \
  [[ "$KERNEL_VERSION" = *SMP* ]] && \
  { smp=y; readonly smp; false;} || smp=n; set -

  ... https://github.com/koalaman/shellcheck

Fixes: https://github.com/alsa-project/alsa-utils/pull/207
From: wileyhy @ github
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-05-03 16:36:04 +02:00
..
alsa-info.sh alsa-info.sh: uname - reduce execs by four, and eliminate a logic bug 2023-05-03 16:36:04 +02:00
alsa-info.sh.1 alsa-info.sh: add man page 2016-01-13 09:47:28 +01:00
Makefile.am alsa-info: add alsa-info.sh.1 to EXTRA_DIST 2016-03-31 16:36:50 +02:00