#!/bin/bash DATABASE=$1 CATEGORY_REGENERATION=$2 echo "Database is "$DATABASE; echo "Category regeneration is "$CATEGORY_REGENERATION; if [ "$CATEGORY_REGENERATION" != "no" ]; then echo "Executo limpeza"; if [ "$CATEGORY_REGENERATION" != "full" ]; then echo "PARTIAL"; else echo "FULL"; fi else echo "Não executo limpeza"; fi