Skip to content

Commit

Permalink
gazebo post fix
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi committed Jun 17, 2024
1 parent 6377834 commit ece5df1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gz_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ sed -i '' "s|VIRTUAL_ENV_ROOT|$VIRTUAL_ENV_ROOT|g" setenv_gz.sh
sed -i '' "s|GZ_INSTALL_ROOT|$GZ_INSTALL_ROOT|g" setenv_gz.sh

# Rename sentenv.sh to activate_ros
if [ -f activate_ros ]; then
rm activate_ros
if [ -f "$HOME/$ROS_INSTALL_ROOT/activate_ros" ]; then
rm "$HOME/$ROS_INSTALL_ROOT/activate_ros"
fi
mv setenv_gz.sh activate_ros
mv setenv_gz.sh "$HOME/$ROS_INSTALL_ROOT/activate_ros"

# Print post messages
printf '\033[32m%.0s=\033[0m' {1..75} && echo
Expand Down
4 changes: 2 additions & 2 deletions setenv_gz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ if [[ $SHELL == *"bash"* ]]; then
# shellcheck disable=SC1091
source "$HOME/ROS_INSTALL_ROOT/install/setup.bash"
# shellcheck disable=SC1091
source "$HOME/ROS_INSTALL_ROOT/GZ_INSTALL_ROOT/install/setup.bash"
source "$HOME/GZ_INSTALL_ROOT/install/setup.bash"
elif [[ $SHELL == *"zsh"* ]]; then
# shellcheck disable=SC1091
source "$HOME/ROS_INSTALL_ROOT/install/setup.zsh"
# shellcheck disable=SC1091
source "$HOME/ROS_INSTALL_ROOT/GZ_INSTALL_ROOT/install/setup.zsh"
source "$HOME/GZ_INSTALL_ROOT/install/setup.zsh"
else
echo "Unsupported shell. Please use bash or zsh."
exit 1
Expand Down

0 comments on commit ece5df1

Please sign in to comment.