Skip to content

Commit f39be8a

Browse files
Fix restyle
1 parent 538a7f5 commit f39be8a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

scripts/sdk-doctor/_repo.sh

+18-18
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,23 @@ get_repo_and_branch_info "."
130130
# Handle arguments
131131
case "$1" in
132132
--git-sub)
133-
# Initialize an array to hold the directories
134-
declare -a repo_dirs
135-
136-
cd "$ROOT_DIR"
137-
138-
# Find directories containing a .github folder and store them in the array, excluding the current directory
139-
while IFS= read -r dir; do
140-
# Check if the directory is not the current directory
141-
if [[ "$dir" != "." ]]; then
142-
repo_dirs+=("$dir")
143-
fi
144-
done < <(find . -type d -name .github | awk -F'/[^/]*$' '{print $1}')
145-
146-
# Iterate through the directories and call the function for each
147-
for dir in "${repo_dirs[@]}"; do
148-
get_repo_and_branch_info "$dir"
149-
done
150-
;;
133+
# Initialize an array to hold the directories
134+
declare -a repo_dirs
135+
136+
cd "$ROOT_DIR"
137+
138+
# Find directories containing a .github folder and store them in the array, excluding the current directory
139+
while IFS= read -r dir; do
140+
# Check if the directory is not the current directory
141+
if [[ "$dir" != "." ]]; then
142+
repo_dirs+=("$dir")
143+
fi
144+
done < <(find . -type d -name .github | awk -F'/[^/]*$' '{print $1}')
145+
146+
# Iterate through the directories and call the function for each
147+
for dir in "${repo_dirs[@]}"; do
148+
get_repo_and_branch_info "$dir"
149+
done
150+
;;
151151
*) ;;
152152
esac

0 commit comments

Comments
 (0)