stop urchin_root at hidden directories
This commit is contained in:
parent
3e90e83237
commit
c6e1016b80
6
urchin
6
urchin
@ -50,8 +50,10 @@ urchin_root() {
|
|||||||
orig="$1"
|
orig="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$(readlink -f -- "$1")" = /; then
|
abscurrent="$(fullpath "$1")"
|
||||||
# Stop traversing upwards at /
|
if test "$abscurrent" = / ||
|
||||||
|
basename "$abscurrent" | grep '^\.' > /dev/null; then
|
||||||
|
# Stop traversing upwards at / and at hidden directories.
|
||||||
if test -d "$orig"; then
|
if test -d "$orig"; then
|
||||||
echo "$orig"
|
echo "$orig"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user