[textproc] shellcheck
This commit is contained in:
parent
8170f37c7a
commit
73916dc3f3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Caricamento…
Fai riferimento in un nuovo problema