~dricottone/my-utils

86e36bedac92f051a285f01385f38446a71db9a6 — Dominic Ricottone 5 years ago b29d2b4
Small fixes recommended by shellcheck
2 files changed, 2 insertions(+), 2 deletions(-)

M ctdir
M whisper
M ctdir => ctdir +1 -1
@@ 32,7 32,7 @@ done

LISTING=$(ls -1 "$@" 2>/dev/null | wc -l)
if [ "$LISTING" -eq 0 ]; then
  err_msg "No files as '${@}'"
  err_msg "No files as '${*}'"
else
  echo "$LISTING"
fi

M whisper => whisper +1 -1
@@ 9,7 9,7 @@
if [ $# -lt 1 ]; then
  TEXT="present day <break time='1000ms'/> present time."
else
  TEXT="$@"
  TEXT=$*
fi

espeak -v +whisper -s 8 -m "$TEXT" 2>/dev/null