Project

General

Profile

« Previous | Next » 

Revision 9464

lib/sh/db.sh: use_local/use_remote: unset $prefix after using it so it isn't unintentionally applied as a kw param for a later function

View differences:

db.sh
4 4
if self_not_included; then
5 5

  
6 6
# using prefixed connection vars
7
alias use_local='declare prefix=local_; import_vars'
8
alias use_remote='declare prefix=remote_; import_vars'
7
alias use_local='declare prefix=local_; import_vars; unset prefix'
8
alias use_remote='declare prefix=remote_; import_vars; unset prefix'
9 9
alias use_local_remote='{ use_local; use_remote; }'
10 10
	# *must* be run inside a function
11 11

  

Also available in: Unified diff