feat: add support for excluding the top level directory (#967)

This commit is contained in:
Tonye Jack
2023-01-31 17:38:55 -07:00
committed by GitHub
parent dddfbd694c
commit 08f351ba16
3 changed files with 31 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)
}