Enviado em 13/01/2019 - 18:00h
Em meu script está dando um erro na pergunta docker_help_iniciar, após o usuário dizer o que deseja executar não acontece nada
O IF de onde está "$docker_help_iniciar" = "help" eu já tentei substituir por ELIF, e também tentei trocar || por -o
iniciar e docker_help_iniciar são a mesma pergunta em áreas diferentes do script
Podem olhar este trecho de código? Obrigado.
echo -n "[k/t/help] "
read iniciar
echo -n " [k/t/help] "
read docker_help_iniciar
if [ "$iniciar" = "t" ] || [ "$docker_help_iniciar" = "t" ]; then
elif [ "$iniciar" = "k" ] || [ "$docker_help_iniciar" = "k" ]; then
fi
if "$iniciar" = "help" ] || [ "$docker_help_iniciar" = "help" ]
then
fi
O IF de onde está "$docker_help_iniciar" = "help" eu já tentei substituir por ELIF, e também tentei trocar || por -o
iniciar e docker_help_iniciar são a mesma pergunta em áreas diferentes do script
Podem olhar este trecho de código? Obrigado.
echo -n "[k/t/help] "
read iniciar
echo -n " [k/t/help] "
read docker_help_iniciar
if [ "$iniciar" = "t" ] || [ "$docker_help_iniciar" = "t" ]; then
elif [ "$iniciar" = "k" ] || [ "$docker_help_iniciar" = "k" ]; then
fi
if "$iniciar" = "help" ] || [ "$docker_help_iniciar" = "help" ]
then
fi