[textproc] shellcheck
This commit is contained in:
parent
8170f37c7a
commit
73916dc3f3
|
@ -23,7 +23,7 @@
|
||||||
# version 1.1, 21/03/2007.
|
# version 1.1, 21/03/2007.
|
||||||
# version 1.0, 2006 (?).
|
# version 1.0, 2006 (?).
|
||||||
|
|
||||||
case `uname -s` in
|
case $(uname -s) in
|
||||||
"FreeBSD") MD5=md5 ;;
|
"FreeBSD") MD5=md5 ;;
|
||||||
"Linux") MD5=md5sum ;;
|
"Linux") MD5=md5sum ;;
|
||||||
*) MD5=md5sum ;;
|
*) MD5=md5sum ;;
|
||||||
|
@ -46,7 +46,7 @@ un fichier ordinaire." >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
somme_a=""
|
somme_a=""
|
||||||
somme=`"$MD5" "$fich"`
|
somme=$("$MD5" "$fich")
|
||||||
|
|
||||||
while : ; do
|
while : ; do
|
||||||
if [ "$somme" != "$somme_a" ] ; then
|
if [ "$somme" != "$somme_a" ] ; then
|
||||||
|
@ -55,5 +55,5 @@ while : ; do
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 5
|
||||||
somme_a="$somme"
|
somme_a="$somme"
|
||||||
somme=`"$MD5" "$fich"`
|
somme=$("$MD5" "$fich")
|
||||||
done
|
done
|
||||||
|
|
|
@ -29,7 +29,7 @@ for HTML in *.html *.htm ; do
|
||||||
TXT=$(basename "$HTML" .html).txt
|
TXT=$(basename "$HTML" .html).txt
|
||||||
|
|
||||||
# Is the .html file more recent than the .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
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue