Project

General

Profile

« Previous | Next » 

Revision 8966

lib/util.sh: added localize_url ()

View differences:

lib/util.sh
260 260
alias unzip_newer="unzip${no_force:+ -u} -o"
261 261
	# -o is safe because -u only extracts newer files
262 262

  
263
#### URLs
264

  
265
localize_url () { test _"$1" = _"$(hostname -f)" || echo "$1"; }
266

  
263 267
#### databases
264 268

  
265 269
# using prefixed connection vars

Also available in: Unified diff