diff --git a/z.sh b/z.sh index c3cbbbc..b0e4aef 100644 --- a/z.sh +++ b/z.sh @@ -42,6 +42,8 @@ _z() { [ -z "$_Z_OWNER" -a -f "$datafile" -a ! -O "$datafile" ] && return _z_dirs () { + [ -f "$datafile" ] || return + local line while read line; do # only count directories