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: '$*'"