From aa16b89ad97d8437fe36577153b728a2ed575802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 22 May 2020 20:12:13 +0300 Subject: [PATCH] managedb is now like psql --- II/Referatas/managedb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/II/Referatas/managedb b/II/Referatas/managedb index 017db15..8fb366d 100755 --- a/II/Referatas/managedb +++ b/II/Referatas/managedb @@ -21,9 +21,10 @@ main() { stop) pg_ctl -D db -l db/logfile stop ;; - "") + "" | --) + [[ $# == 2 ]] && shift exports - psql + exec psql "$@" ;; *) >&2 echo "Unknown command: '$*'"