Skip to content

Commit

Permalink
Fix restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-marquez-csa committed Mar 12, 2024
1 parent 4f588c7 commit 538a7f5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
40 changes: 20 additions & 20 deletions scripts/sdk-doctor/_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,24 @@ get_repo_and_branch_info "."

# Handle arguments
case "$1" in
--git-sub)
# Initialize an array to hold the directories
declare -a repo_dirs

cd "$ROOT_DIR"

# Find directories containing a .github folder and store them in the array, excluding the current directory
while IFS= read -r dir; do
# Check if the directory is not the current directory
if [[ "$dir" != "." ]]; then
repo_dirs+=("$dir")
fi
done < <(find . -type d -name .github | awk -F'/[^/]*$' '{print $1}')

# Iterate through the directories and call the function for each
for dir in "${repo_dirs[@]}"; do
get_repo_and_branch_info "$dir"
done
;;
*) ;;
--git-sub)
# Initialize an array to hold the directories
declare -a repo_dirs

cd "$ROOT_DIR"

# Find directories containing a .github folder and store them in the array, excluding the current directory
while IFS= read -r dir; do
# Check if the directory is not the current directory
if [[ "$dir" != "." ]]; then
repo_dirs+=("$dir")
fi
done < <(find . -type d -name .github | awk -F'/[^/]*$' '{print $1}')

# Iterate through the directories and call the function for each
for dir in "${repo_dirs[@]}"; do
get_repo_and_branch_info "$dir"
done
;;
*) ;;
esac
24 changes: 12 additions & 12 deletions scripts/sdk-doctor/sdk-doctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@

# Handle arguments
case "$1" in
--system)
show_system
usage
;;
--complete)
show_system
usage
;;
*)
usage
exit 1
;;
--system)
show_system
usage
;;
--complete)
show_system
usage
;;
*)
usage
exit 1
;;
esac

} 2>&1 | tee sdk-doctor.txt

0 comments on commit 538a7f5

Please sign in to comment.