Skip to content
Browse files

Closes GH-1 Don't cd into files

  • Loading branch information...
1 parent 5e31f19 commit b4461f4a3d43677145dfe6e4de28670a810648b6 @isaacs committed Feb 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ryp
View
2 ryp
@@ -59,7 +59,7 @@ ls_ () {
return 0
fi
echo $pref/$i
- ( cd "$i" &>/dev/null ; ls_ $pref/$i ) || true
+ [ -d $i ] && ( cd "$i" &>/dev/null ; ls_ $pref/$i ) || true
done
}

0 comments on commit b4461f4

Please sign in to comment.
Something went wrong with that request. Please try again.