Skip to content

Commit

Permalink
Updated get-changed-paths.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 24, 2022
1 parent 6093777 commit 967c8a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions get-changed-paths.sh
Expand Up @@ -25,12 +25,10 @@ if [[ -n $INPUT_DIFF_RELATIVE ]]; then
fi

function get_dirname_max_depth() {
local depth=0
local dir=""
local dirs=()

while IFS='' read -r line; do
dir="$line"
local dir="$line"
local dirs=()
IFS='/' read -ra dirs <<<"$dir"

local max_depth=${#dirs[@]}
Expand Down

0 comments on commit 967c8a0

Please sign in to comment.