Hi people!
I'm getting a error message on this script
Code:
if [ $1 -e '1' ]
then envia_arquivo
else
if [ $1 -e 2 ]
then echo 'Implementar!'
else echo 'Os parametros devem ser 1(para envio de arquivos) ou 2(para receber arquivos)'
exit 1
fi
fi
when o call this file with 1 as the parameter, I get this message:
./envio.sh: line 25: [: -e: binary operator expected
./envio.sh: line 28: [: -e: binary operator expected
OBS: There are more lines, because of this the line number are higher then the script.
I'm doing anything wrong?
Thanks!!