aboutsummaryrefslogtreecommitdiff
path: root/brweather/bin/inpe-4
diff options
context:
space:
mode:
Diffstat (limited to 'brweather/bin/inpe-4')
-rw-r--r--brweather/bin/inpe-44
1 files changed, 3 insertions, 1 deletions
diff --git a/brweather/bin/inpe-4 b/brweather/bin/inpe-4
index 54eaab8..0722ca4 100644
--- a/brweather/bin/inpe-4
+++ b/brweather/bin/inpe-4
@@ -10,6 +10,7 @@ NCN=`grep "javascript:janela('http://tempo.cptec.inpe.br/~rtempo/legenda.shtml'"
NC1=`grep -m1 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.'`
# Dia
+if [ $OPEN = "0" ] ; then
dia(){
case $NCN in
"ec")
@@ -483,6 +484,7 @@ case `date "+%H"` in
*) echo "" >/dev/null
;;
esac
+fi
# Previsão do tempo as próximas horas
case $NC1 in
@@ -687,7 +689,7 @@ case $NC1 in
C1="$IMAGE $DIRNAME/imagens/imagem$IMAGEM/ppm.png $* }"
;;
*)
- echo "Erro." & echo "$ERROCACHE" > ~/.brweather/log
+ echo "Erro." && echo "$ERROCACHE" > ~/.brweather/log
C1="$IMAGE $DIRNAME/imagens/imagem$IMAGEM/nd.png $* }"
;;
esac