removido
(usa Nenhuma)
Enviado em 04/12/2009 - 16:16h
deu erro
instalador: line 23: unexpected EOF while looking for matching ``'
veja:
=======================================================================
root@CASA:/home/douglas/outros/scripts/DGF# bash -xv instalador
#!/bin/bash
DIR=`pwd`
pwd
++ pwd
+ DIR=/home/douglas/outros/scripts/DGF
ARQLOG=programas-instalados
+ ARQLOG=programas-instalados
DIRLOG=/tmp/DGF
+ DIRLOG=/tmp/DGF
LOG=$DIRLOG/$ARQLOG
+ LOG=/tmp/DGF/programas-instalados
BIN=/usr/local/bin
+ BIN=/usr/local/bin
if [ ! -d "$LOG" ]; then
rm -rf "$DIRLOG"
mkdir /tmp/DGF
fi
+ '[' '!' -d /tmp/DGF/programas-instalados ']'
+ rm -rf /tmp/DGF
+ mkdir /tmp/DGF
if [ -z "$LOG" ]; then
touch $LOG
fi
+ '[' -z /tmp/DGF/programas-instalados ']'
ls $DIR/dgf* &> "$LOG"
+ ls /home/douglas/outros/scripts/DGF/dgf /home/douglas/outros/scripts/DGF/dgfdesktop /home/douglas/outros/scripts/DGF/dgfscan /home/douglas/outros/scripts/DGF/dgfvariavel
for prog in `grep dgf* $LOG`
do
prog=`echo $LOG | sed -e 's/.*://'
cp "$prog" $BIN
done
instalador: line 23: unexpected EOF while looking for matching ``'
instalador: line 27: syntax error: unexpected end of file
======================================================================
a linha 23 eh a que vc me passou
e a 27 nao existe
o script tem 26 linhas