Skip to content

Commit 648dbbf

Browse files
committed
Change check for existing array entry to work in tests
1 parent 6eff269 commit 648dbbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/start_ursim.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ validate_parameters()
182182
fi
183183
;;
184184
polyscopex)
185-
if [[ -z "${POLYSCOPE_X_MAP[${URSIM_VERSION}]}" ]]; then
186-
echo "URSim version $URSIM_VERSION is not supported"
185+
if [[ ! "${POLYSCOPE_X_MAP[${URSIM_VERSION}]+_}" ]]; then
186+
echo "URSim version $URSIM_VERSION is unfortunately not supported"
187187
exit 1
188188
fi
189189
if [[ $ROBOT_MODEL != @(ur3e|ur5e|ur10e|ur16e|ur20|ur30) ]]; then

0 commit comments

Comments
 (0)