Revision 9231
Added by Aaron Marcuse-Kubitza about 11 years ago
local.sh | ||
---|---|---|
36 | 36 |
|
37 | 37 |
psql() # usage: [file=...] [dir=...] self |
38 | 38 |
{ |
39 |
echo_func |
|
39 |
echo_func; params file dir
|
|
40 | 40 |
if test "$file"; then |
41 | 41 |
set -- --file "$file" "$@" |
42 | 42 |
local dir="${dir:-$(dirname "$file")}" |
Also available in: Unified diff
: use new `params` in all functions that have keyword params, in order to remove their vars from the environment. note that functions that use $? (such as die()) must save it *before running params, because params will overwrite $?.