File tree Expand file tree Collapse file tree 6 files changed +16
-35
lines changed Expand file tree Collapse file tree 6 files changed +16
-35
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ set -e
10
10
11
11
# Include all user options and dependencies
12
12
git_mirrors_dir=" ${0%/* } "
13
- [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
14
- . " ${git_mirrors_dir} /lib/VERSION"
15
- . " ${git_mirrors_dir} /lib/functions.sh"
16
- if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
17
- red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
18
- exit 1
19
- fi
13
+ source ${git_mirrors_dir} /includes.sh
20
14
21
15
# check if api version is set
22
16
[ -z $gitlab_api_version ] && gitlab_api_version=4
Original file line number Diff line number Diff line change 8
8
9
9
# Include all user options and dependencies
10
10
git_mirrors_dir=" ${0%/* } "
11
- [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
12
- . " ${git_mirrors_dir} /lib/VERSION"
13
- . " ${git_mirrors_dir} /lib/functions.sh"
14
- if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
15
- red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
16
- exit 1
17
- fi
11
+ source ${git_mirrors_dir} /includes.sh
18
12
19
13
# check if api version is set
20
14
[ -z $gitlab_api_version ] && gitlab_api_version=4
Original file line number Diff line number Diff line change 5
5
6
6
# Include all user options and dependencies
7
7
git_mirrors_dir=" ${0%/* } "
8
- [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
9
- . " ${git_mirrors_dir} /lib/VERSION"
10
- . " ${git_mirrors_dir} /lib/functions.sh"
11
- if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
12
- red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
13
- exit 1
14
- fi
8
+ source ${git_mirrors_dir} /includes.sh
15
9
16
10
cd " ${git_mirrors_dir} "
17
11
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+
3
+ # Include all user options and dependencies
4
+ git_mirrors_dir=" ${0%/* } "
5
+ [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
6
+ . " ${git_mirrors_dir} /lib/VERSION"
7
+ . " ${git_mirrors_dir} /lib/functions.sh"
8
+ if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
9
+ red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
10
+ exit 1
11
+ fi
Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ set -e
10
10
11
11
# Include all user options and dependencies
12
12
git_mirrors_dir=" ${0%/* } "
13
- [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
14
- . " ${git_mirrors_dir} /lib/VERSION"
15
- . " ${git_mirrors_dir} /lib/functions.sh"
16
- if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
17
- red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
18
- exit 1
19
- fi
13
+ source ${git_mirrors_dir} /includes.sh
20
14
21
15
PROGNAME=" ${0##*/ } "
22
16
PROGVERSION=" ${VERSION} "
Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ set -e
10
10
11
11
# Include all user options and dependencies
12
12
git_mirrors_dir=" ${0%/* } "
13
- [ -f " ${git_mirrors_dir} /config.sh" ] && . " ${git_mirrors_dir} /config.sh"
14
- . " ${git_mirrors_dir} /lib/VERSION"
15
- . " ${git_mirrors_dir} /lib/functions.sh"
16
- if [ ! -f " ${git_mirrors_dir} /config.sh" ]; then
17
- red_echo " config.sh missing! Copy and customize from config.sh.SAMPLE. Aborting." 1>&2
18
- exit 1
19
- fi
13
+ source ${git_mirrors_dir} /includes.sh
20
14
21
15
# sane update defaults that are backwards compatible
22
16
force_update=" ${force_update:- false} "
You can’t perform that action at this time.
0 commit comments