feat: add support for excluding the top level directory

This commit is contained in:
Tonye Jack
2023-01-31 16:54:49 -07:00
parent dddfbd694c
commit 1982157b6c
2 changed files with 9 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ function get_dirname_max_depth() {
depth=$((depth + 1))
done
if [[ "$INPUT_DIR_NAMES_EXCLUDE_ROOT" == "true" && "$output" == "." ]]; then
continue
fi
echo "$output"
done < <(uniq)
}