Do not use backticks - they lead to the script trying to execute the quoted command.

This commit is contained in:
Luca Palmieri 2021-12-28 12:18:38 +01:00
parent 0967a6030c
commit 937a872a4a

View file

@ -3,12 +3,12 @@ set -x
set -eo pipefail
if ! [ -x "$(command -v psql)" ]; then
echo >&2 "Error: `psql` is not installed."
echo >&2 "Error: psql is not installed."
exit 1
fi
if ! [ -x "$(command -v sqlx)" ]; then
echo >&2 "Error: `sqlx` is not installed."
echo >&2 "Error: sqlx is not installed."
echo >&2 "Use:"
echo >&2 " cargo install --version=0.5.5 sqlx-cli --no-default-features --features postgres"
echo >&2 "to install it."