File tree 1 file changed +18
-18
lines changed
1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -130,23 +130,23 @@ get_repo_and_branch_info "."
130
130
# Handle arguments
131
131
case " $1 " in
132
132
--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
+ ;;
151
151
* ) ;;
152
152
esac
You can’t perform that action at this time.
0 commit comments