Project

General

Profile

« Previous | Next » 

Revision 8194

lib/import.sh: Only set $table, $schema if they don't already exist

View differences:

lib/import.sh
15 15
root_dir="$import_sh_dir"/..
16 16
bin_dir="$root_dir"/bin
17 17

  
18
table="$(basename "$PWD")"
19
schema="$(cd ..; basename "$PWD")"
18
: "${schema="$(cd ..; basename "$PWD")"}"
19
: "${table="$(basename "$PWD")"}"
20 20

  
21 21
psql ()
22 22
{

Also available in: Unified diff