14 lines
338 B
Bash
Executable File
14 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
status-git-folder() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
|
|
local git_folders=$(ls-git-folder "$1")
|
|
|
|
echo 'Show status in git folders...'
|
|
for git_folder in $git_folders; do
|
|
echo -e "\nGit status of \033[32m$git_folder\033[0m:\n"
|
|
git -C "$git_folder" status
|
|
done
|
|
}
|
|
|