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
1010
1111# Include all user options and dependencies
1212git_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
2014
2115# check if api version is set
2216[ -z $gitlab_api_version ] && gitlab_api_version=4
Original file line number Diff line number Diff line change 88
99# Include all user options and dependencies
1010git_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
1812
1913# check if api version is set
2014[ -z $gitlab_api_version ] && gitlab_api_version=4
Original file line number Diff line number Diff line change 55
66# Include all user options and dependencies
77git_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
159
1610cd " ${git_mirrors_dir} "
1711
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
1010
1111# Include all user options and dependencies
1212git_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
2014
2115PROGNAME=" ${0##*/ } "
2216PROGVERSION=" ${VERSION} "
Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ set -e
1010
1111# Include all user options and dependencies
1212git_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
2014
2115# sane update defaults that are backwards compatible
2216force_update=" ${force_update:- false} "
You can’t perform that action at this time.
0 commit comments