Revision 13364
Added by Aaron Marcuse-Kubitza over 10 years ago
db.sh | ||
---|---|---|
5 | 5 |
if self_not_included; then |
6 | 6 |
|
7 | 7 |
# using prefixed connection vars |
8 |
# idempotent |
|
8 | 9 |
alias ssh2local='declare prefix=ssh_; import_vars; unset prefix |
9 | 10 |
declare $(prefix=ssh_ get_prefix_vars); unset $(prefix=ssh_ get_prefix_vars)' |
10 | 11 |
alias use_local='declare prefix=local_; import_vars; unset prefix' |
Also available in: Unified diff
lib/sh/util.sh: import_vars: documented that it's idempotent