Commit 2e934828 authored by Diego Pasqualin's avatar Diego Pasqualin
Browse files

le-publica.sh: Fix exit codes



They should represent the success or failure of the package publishing
Signed-off-by: default avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 42485f97
......@@ -28,7 +28,7 @@
if (( $# < 2 )) || [[ "$1" == "--help" ]]; then
printf "Uso: le-publica repositorio arquivo1 [arquivo2 ... arquivoN]\n"
printf " repositorio = le-unstable | le-testing | le-stable | le-educ | le5-unstable | le5-testing | le5-stable | mc-unstable | mc-testing | mc-stable\n"
exit 0
exit 1
fi
REPOSITORIO=$1
......@@ -38,7 +38,10 @@ ARQUIVOS=$*
if ! egrep -q "(le-testing|le-unstable|le-stable|le-educ|le5-unstable|le5-testing|le5-stable|mc-unstable|mc-testing|mc-stable)" <<< $REPOSITORIO; then
printf "\"$REPOSITORIO\": Nao conhecido"
printf ", rode $0 --help para saber mais\n"
exit 1
fi
printf "Enviando arquivos:\n"
scp $ARQUIVOS $REPOSITORIO@windu.c3sl.ufpr.br:incoming
exit $?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment