updated postgres.sh

pull/2/head
Hari Sekhon 4 years ago
parent 341dabce46
commit 431f62f06f

@ -200,6 +200,10 @@ fi
timestamp "linking shell profile for .psqlrc"
docker exec "$container_name" bash -c "cd /bash && setup/shell_link.sh &>/dev/null" || :
# yes expand now
# shellcheck disable=SC2064
trap "echo ERROR; echo; echo; [ -z '${DEBUG:-}' ] || docker logs '$container_name'" EXIT
if [ -n "${LOAD_SAMPLE_DB:-}" ]; then
dbname="${db##*/}"
dbname="${dbname%%.*}"
@ -221,10 +225,6 @@ $shell_description
EOF
fi
# yes expand now
# shellcheck disable=SC2064
trap "echo ERROR; echo; echo; [ -z '${DEBUG:-}' ] || docker logs '$container_name'" EXIT
# cd to /sql to make sourcing easier without /sql/ path prefix
docker_exec_opts="-w /sql -i"

Loading…
Cancel
Save