Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

walk: remove useless logic to determine walking dirs

  • Loading branch information...
commit b1025560e3f688bcadc8b6df346f6c7628c0b420 1 parent 583053e
@falconindy authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 walk
View
8 walk
@@ -6,7 +6,7 @@
shopt -s nullglob
-# indent size
+indent=0
ind_sz=3
dirs_first=0
@@ -48,11 +48,7 @@ while getopts "ad" opt; do
done
shift $(( OPTIND - 1 ))
-indent=0
-(( $# == 0 )) && DIRS=(.) || DIRS=($@)
-
-for basedir in "${DIRS[@]}"; do
- cd "$basedir" 2>/dev/null || { printf "Directory not found: '%s'\n" "$basedir" >&2; continue; }
+for basedir in "${@:-.}"; do
walk "$basedir"
done
Please sign in to comment.
Something went wrong with that request. Please try again.