Applies to:
- Liquibase Pro
- Liquibase Open Source (Community)
Conditions:
- Liquibase (any version)
- Passing variables via command line arguments
- Linux/Unix environment
Issue Summary:
There is an error that can occur based on how the terminal interprets the characters. This error occurs when using the `&` character not inside of a string as a command line argument.
Error Message:
The error message will appear in the following format:
./<script_name>: line <line_number>: <liquibase_command>: command not found
Root Cause:
The `&` character is used to run a process in the background in a Linux/Unix terminal, so if any value in the command line arguments contains the & character and isn't cast to be a string, this error will occur.
Resolution:
There are two solutions to resolve this error:
- Add double quotes around the entire value containing the `&` character to format it as a string
- Make a modification to not include the `&` character
Related Article(s):
N/A
Comments
0 comments
Article is closed for comments.