Skip to content

Commit 1982497

Browse files
committed
Manual fixes by shellcheck
1 parent 332d97a commit 1982497

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

nets/8r-1c-srv6-pm/nodeconf/common/commons.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
function source_file_if_defined()
44
{
55
local fname="$1"
6-
local res
76

87
if [ -z "${fname+x}" ]; then
98
# variable not defined
109
return 0;
1110
fi
1211

12+
# shellcheck source=/dev/null
1313
source "${fname}" || return $?
1414

1515
return 0

nets/8r-1c-srv6-pm/nodeconf/r1/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ISIS_CFG="${WDIR}/isisd.conf"
3838
### BEWARE TO EDIT BELOW ###
3939
############################
4040

41+
# shellcheck source=../common/commons.sh
4142
source "${CDIR}/commons.sh" || exit $?
4243

4344
#enable IPv6 forwarding

nets/8r-1c-srv6-pm/nodeconf/r8/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ISIS_CFG="${WDIR}/isisd.conf"
3838
### BEWARE TO EDIT BELOW ###
3939
############################
4040

41+
# shellcheck source=../common/commons.sh
4142
source "${CDIR}/commons.sh" || exit $?
4243

4344
#enable IPv6 forwarding

0 commit comments

Comments
 (0)