-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_show_repositories.sh
More file actions
executable file
·42 lines (37 loc) · 985 Bytes
/
git_show_repositories.sh
File metadata and controls
executable file
·42 lines (37 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/sh
### Loader fuer base-libraries
homedir=~
base_configuration_directory=~/etc/base_configuration
if [ -d ${base_configuration_directory} ]
then
. ${base_configuration_directory}/base_presets.sh
. ${base_configuration_directory}/git_presets.sh
else
. ./base_functions.sh
. ./presets.sh
fi
for library_file in git_library.sh visuals_library.sh
do
. ${default_functions_dir}/${library_file}
done
###
search_path=""
for directory in ${git_repository_base_directories}
do
if [ -d ~/${directory} ]
then
search_path="${search_path} ${homedir}/${directory}/"
fi
done
if [ "${search_path}" != "" ]
then
git_repository_list=""
for directory in $(find ${search_path} -type d -name .git | sort)
do
git_repository_list="${git_repository_list}\n$(parse_git_repository ${directory})"
done
render_git_repository "${git_repository_list}"
else
echo "Kein Verzeichnis vorhanden (Gesucht wurde in$(echo " ${git_repository_base_directories}" | sed "s/ / ~\//g"))."
exit 1
fi