~ecs/tm

3a388acc5a363c9c7dc8330988799089b8c4a07e — Ember Sawady 3 years ago d6800ba
isignored: fix directories ending in ..
1 files changed, 7 insertions(+), 2 deletions(-)

M lib.sh
M lib.sh => lib.sh +7 -2
@@ 13,8 13,13 @@ isignored() {
	! [ -f "$TM_IGNORE" ] && return 1
	IFS='
'
	cd -- "$(dirname -- "$1")"
	path="$PWD/$(basename -- "$1")"
	if [ -d "$1" ]; then
		cd -- "$1"
		path="$PWD"
	else
		cd -- "$(dirname -- "$1")"
		path="$PWD/$(basename -- "$1")"
	fi
	cd - >/dev/null
	cd -- "$TM_WS"
	len="$(pwd | wc -c)"