Skip to content

Commit

Permalink
chore: improve script outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-granthon committed May 4, 2024
1 parent 72de59d commit f933740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pgconnect.bash
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function execute_sql_script_file() {
script_file=${1}

if [ ! -f "${script_file}" ]; then
echo "File ${script_file} does not exist."
echo "File \`${script_file}\` does not exist."
echo -e "Usage: $0 <db_index> --script <script_file>"
exit 1
fi
Expand Down Expand Up @@ -167,6 +167,8 @@ fi

# if there's a value in ENV_FILE, source the corresponding file.
if [ -n "$ENV_FILE" ]; then
echo "Sourcing environment file: $ENV_FILE"

# shellcheck disable=SC1090
source "$ENV_FILE"
fi
Expand Down

0 comments on commit f933740

Please sign in to comment.