From 73916dc3f322fef68230810e390281de2983dc68 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Wed, 11 Apr 2018 23:32:56 +0200 Subject: [PATCH] [textproc] shellcheck --- textproc/latexd.sh | 6 +++--- textproc/make_html2text.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/textproc/latexd.sh b/textproc/latexd.sh index 02c43ef..03610d4 100755 --- a/textproc/latexd.sh +++ b/textproc/latexd.sh @@ -23,7 +23,7 @@ # version 1.1, 21/03/2007. # version 1.0, 2006 (?). -case `uname -s` in +case $(uname -s) in "FreeBSD") MD5=md5 ;; "Linux") MD5=md5sum ;; *) MD5=md5sum ;; @@ -46,7 +46,7 @@ un fichier ordinaire." >&2 fi somme_a="" -somme=`"$MD5" "$fich"` +somme=$("$MD5" "$fich") while : ; do if [ "$somme" != "$somme_a" ] ; then @@ -55,5 +55,5 @@ while : ; do fi sleep 5 somme_a="$somme" - somme=`"$MD5" "$fich"` + somme=$("$MD5" "$fich") done diff --git a/textproc/make_html2text.sh b/textproc/make_html2text.sh index 4c8e493..494e7c8 100755 --- a/textproc/make_html2text.sh +++ b/textproc/make_html2text.sh @@ -29,7 +29,7 @@ for HTML in *.html *.htm ; do TXT=$(basename "$HTML" .html).txt # Is the .html file more recent than the .txt ? - if [ -f "$TXT" -a "$HTML" -ot "$TXT" ] ; then + if [ -f "$TXT" ] && [ "$HTML" -ot "$TXT" ] ; then continue fi