Revision 8194
Added by Aaron Marcuse-Kubitza almost 12 years ago
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
lib/import.sh: Only set $table, $schema if they don't already exist