Skip to content

Commit 7fe5aa9

Browse files
MatthijsBurghar13pit
authored andcommitted
[ros-gazebo_plugins] fix shellcheck
1 parent d206123 commit 7fe5aa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ros-gazebo_plugins/install.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ then
99
fi
1010

1111
desired_version="2.9.2"
12-
installed_version=$(apt-cache policy ros-$TUE_ROS_DISTRO-gazebo-plugins | grep "Installed" | awk '{print $2}')
13-
if [ $installed_version == "(none)" ]
12+
installed_version=$(apt-cache policy ros-"$TUE_ROS_DISTRO"-gazebo-plugins | grep "Installed" | awk '{print $2}')
13+
if [ "$installed_version" == "(none)" ]
1414
then
1515
tue-install-debug "Not installed yet, so the newest version will be installed"
1616
elif version_gt "$desired_version" "$installed_version"
1717
then
1818
tue-install-echo "Going to install desired version($desired_version), current version: $installed_version"
19-
tue-install-pipe sudo apt-get install --assume-yes -q ros-$TUE_ROS_DISTRO-gazebo-plugins
19+
tue-install-pipe sudo apt-get install --assume-yes -q ros-"$TUE_ROS_DISTRO"-gazebo-plugins
2020
else
2121
tue-install-debug "Already on the desired version($desired_version): $installed_version"
2222
fi

0 commit comments

Comments
 (0)