fix(lib/package/package.sh): emit real path 'bpkg_package_path'

pull/144/head
jwerle 2 years ago
parent 4eff8f7192
commit 8595da906a

@ -58,20 +58,20 @@ find_file () {
## check if file exists at given path
if test -f "$file"; then
echo "$file"
realpath "$file"
return 0
fi
## check if file exists joined with currrent path (cwd)
if test -f "$path/$file"; then
echo "$path/$file"
realpath "$path/$file"
return 0
fi
## check if file exists in paths stopping at $HOME
while [[ "$path" != "$HOME" && "$path" != "" ]]; do
if test -f "$path/$file"; then
echo "$path/$file"
realpath "$path/$file"
return 0
fi

Loading…
Cancel
Save