Skip to content
Snippets Groups Projects
Commit 1ff01631 authored by Eduardo Klosowski's avatar Eduardo Klosowski
Browse files

Adicionado função para executar as verificações

parent bc2c7a7a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -57,3 +57,23 @@ find_conf() {
read_conf() {
sed -rn 's/^([0-9A-Za-z -_]+):\s*(.+)/\1\t\2/p' "$1"
}
run() {
if ! conf="$(find_conf .)"; then
echo "Arquivo de configuração não encontrado!"
return 1
fi
while IFS="$(echo -ne "\t")" read name prog; do
if ! run_step "$name" "$prog"; then
return 1
fi
done < <(read_conf "$conf")
return 0
}
# Run
run
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment