Browse Source

[textproc] shellcheck

master
Matteo Cypriani 1 year ago
parent
commit
73916dc3f3
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      textproc/latexd.sh
  2. 1
    1
      textproc/make_html2text.sh

+ 3
- 3
textproc/latexd.sh View File

@@ -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

+ 1
- 1
textproc/make_html2text.sh View File

@@ -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


Loading…
Cancel
Save