Don't find hidden files or directories
This commit is contained in:
@@ -30,7 +30,7 @@ for path in "${paths[@]}"; do
|
|||||||
[[ -e $path ]] || { echo "Path not found: $path" >&2; exit 1; }
|
[[ -e $path ]] || { echo "Path not found: $path" >&2; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
find_args=("${paths[@]}" "(" -type d -name ".*" ! -name "." -prune ")" -o -type f "(")
|
find_args=("${paths[@]}" "(" -type d -name ".*" ! -name "." -prune ")" -o -type f ! -name ".*" "(")
|
||||||
first_format=true
|
first_format=true
|
||||||
for format in "${formats[@]}"; do
|
for format in "${formats[@]}"; do
|
||||||
if [[ $first_format == "true" ]]; then
|
if [[ $first_format == "true" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user