Revision 9245
Added by Aaron Marcuse-Kubitza about 11 years ago
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
bugfix: lib/sh/util.sh: rel_path(): ensure non-empty by using . if empty