Синтаксическая ошибка Flyway в одной среде, а не в другойLinux

Гость
Синтаксическая ошибка Flyway в одной среде, а не в другой

Сообщение Гость »


мы получаем ошибку в коде ниже
"Синтаксическая ошибка рядом с неожиданным токеном ("
#Определите массив для хранения имен схем
р>

Код: Выделить всё

            schema_names=()

echo "Current Directory: $(pwd)"

#Find all SQL files and populate the schema_names array

for script_file in $(find "$(System.DefaultWorkingDirectory)/deployment-extract/flyway" -type f -name "*.sql"); do

#Extract the schema name dynamically from the file path using awk

myschema=$(echo "$script_file" | awk -F'/deployment-extract/flyway/' '{split($2, a, "/"); print a[1]}')

if [ -n "$myschema" ]; then

schema_names+=("$myschema")

else

echo "Schema name not found in file path: $script_file"

exit 1

fi

done
we try to change our env , its working in one env but not in another.
not sure why its not working


Источник: https://stackoverflow.com/questions/781 ... in-another

Вернуться в «Linux»