Project

General

Profile

« Previous | Next » 

Revision 9245

bugfix: lib/sh/util.sh: rel_path(): ensure non-empty by using . if empty

View differences:

lib/sh/util.sh
244 244
	
245 245
	path="${path#$base_dir/}" # remove any prefix shared with base_dir
246 246
	
247
	if test ! "$path"; then path=.; fi # ensure non-empty
248
	
247 249
	echo_vars path
248 250
	echo "$path"
249 251
}

Also available in: Unified diff