File tree 9 files changed +27
-4
lines changed
9 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
27
27
elif [[ -s $TOP /functions.sh ]]; then
28
28
# shellcheck source=functions.sh
29
29
. " $TOP /functions.sh"
30
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
31
+ # shellcheck source=functions.sh
32
+ . /etc/safeboot/functions.sh
30
33
else
31
34
echo " Unable to find Safeboot function library" 1>&2
32
35
exit 1
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
15
15
elif [[ -s $TOP /functions.sh ]]; then
16
16
# shellcheck disable=SC1090 source=functions.sh
17
17
. " $TOP /functions.sh"
18
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
19
+ # shellcheck source=functions.sh
20
+ . /etc/safeboot/functions.sh
18
21
else
19
22
echo " Unable to find Safeboot function library" 1>&2
20
23
exit 1
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
15
15
elif [[ -s $TOP /functions.sh ]]; then
16
16
# shellcheck disable=SC1090 source=functions.sh
17
17
. " $TOP /functions.sh"
18
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
19
+ # shellcheck source=functions.sh
20
+ . /etc/safeboot/functions.sh
18
21
else
19
22
echo " Unable to find Safeboot function library" 1>&2
20
23
exit 1
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
35
35
elif [[ -s $TOP /functions.sh ]]; then
36
36
# shellcheck disable=SC1090 source=functions.sh
37
37
. " $TOP /functions.sh"
38
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
39
+ # shellcheck source=functions.sh
40
+ . /etc/safeboot/functions.sh
38
41
else
39
42
echo " Unable to find Safeboot function library" 1>&2
40
43
exit 1
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
33
33
elif [[ -s $TOP /functions.sh ]]; then
34
34
# shellcheck source=functions.sh
35
35
. " $TOP /functions.sh"
36
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
37
+ # shellcheck source=functions.sh
38
+ . /etc/safeboot/functions.sh
36
39
else
37
40
echo " Unable to find Safeboot function library" 1>&2
38
41
exit 1
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
30
30
elif [[ -s $TOP /functions.sh ]]; then
31
31
# shellcheck source=functions.sh
32
32
. " $TOP /functions.sh"
33
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
34
+ # shellcheck source=functions.sh
35
+ . /etc/safeboot/functions.sh
33
36
else
34
37
echo " Unable to find Safeboot function library" 1>&2
35
38
exit 1
Original file line number Diff line number Diff line change @@ -7,17 +7,16 @@ TOP=$(dirname "$BINDIR")
7
7
if [[ -s $TOP /lib/safeboot/functions.sh ]]; then
8
8
# shellcheck disable=SC1090 source=functions.sh
9
9
. " $TOP /lib/safeboot/functions.sh"
10
- functions_sh=$TOP /lib/safeboot/functions.sh
11
10
elif [[ -s $TOP /functions.sh ]]; then
12
11
# shellcheck disable=SC1090 source=functions.sh
13
12
. " $TOP /functions.sh"
14
- functions_sh=$TOP /functions.sh
13
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
14
+ # shellcheck disable=SC1090 source=functions.sh
15
+ . /etc/safeboot/functions.sh
15
16
else
16
17
echo " Unable to find Safeboot function library" 1>&2
17
18
exit 1
18
19
fi
19
- # shellcheck source=functions.sh
20
- . " $functions_sh "
21
20
22
21
set -euo pipefail -o noclobber
23
22
shopt -s extglob
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
10
10
elif [[ -s $TOP /functions.sh ]]; then
11
11
# shellcheck disable=SC1090 source=functions.sh
12
12
. " $TOP /functions.sh"
13
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
14
+ # shellcheck source=functions.sh
15
+ . /etc/safeboot/functions.sh
13
16
else
14
17
echo " Unable to find Safeboot function library" 1>&2
15
18
exit 1
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ if [[ -s $TOP/lib/safeboot/functions.sh ]]; then
10
10
elif [[ -s $TOP /functions.sh ]]; then
11
11
# shellcheck disable=SC1090 source=functions.sh
12
12
. " $TOP /functions.sh"
13
+ elif [[ -s /etc/safeboot/functions.sh ]]; then
14
+ # shellcheck source=functions.sh
15
+ . /etc/safeboot/functions.sh
13
16
else
14
17
echo " Unable to find Safeboot function library" 1>&2
15
18
exit 1
You can’t perform that action at this time.
0 commit comments