Skip to content

Commit e1e3f69

Browse files
authored
Fix init-env.sh error in non ocp clusters. (#113)
The NUM variable does not exist for non ocp clusters so it was showing this error: [2022-05-11T07:34:16.603Z] ++ '[' '' -ge 0 ']' [2022-05-11T07:34:16.603Z] ./scripts/init-env.sh: line 83: [: : integer expression expected
1 parent 02303d3 commit e1e3f69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/init-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ then
7878
create_multus_annotation "ipv4"
7979
# IPv6
8080
create_multus_annotation "ipv6"
81-
fi
8281

83-
if [ "$NUM" -ge 0 ]; then
84-
export MULTUS_ANNOTATION="'[ ${MULTUS_ANNOTATION::-1} ]'"
82+
if [ "$NUM" -ge 0 ]; then
83+
export MULTUS_ANNOTATION="'[ ${MULTUS_ANNOTATION::-1} ]'"
84+
fi
8585
fi

0 commit comments

Comments
 (0)