managedb is now like psql

This commit is contained in:
Motiejus Jakštys 2020-05-22 20:12:13 +03:00
parent b24be76507
commit aa16b89ad9

View File

@ -21,9 +21,10 @@ main() {
stop) stop)
pg_ctl -D db -l db/logfile stop pg_ctl -D db -l db/logfile stop
;; ;;
"") "" | --)
[[ $# == 2 ]] && shift
exports exports
psql exec psql "$@"
;; ;;
*) *)
>&2 echo "Unknown command: '$*'" >&2 echo "Unknown command: '$*'"