Skip to content

Commit

Permalink
Update gz_install.sh
Browse files Browse the repository at this point in the history
add gz-transrpot-vendor pkg
  • Loading branch information
yncity authored Jul 30, 2024
1 parent 0c876d3 commit ccb52cf
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion gz_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,25 @@ for ((i=1;i<=max_retries;i++)); do
sleep 5
done

# Move to the specific directory to download additional packages
pushd "$HOME/$GZ_INSTALL_ROOT/src/gz-transport" > /dev/null || {
echo -e "\033[31m\nFailed to change directory to $HOME/$GZ_INSTALL_ROOT/src/gz-transport\033[0m"
exit 1
}

# Download the additional package
git clone -b jazzy https://github.com/gazebo-release/gz_transport_vendor.git || {
echo -e "\033[31m\nFailed to clone the repository\033[0m"
popd > /dev/null
exit 1
}

# Return to the original directory
popd > /dev/null || {
echo -e "\033[31m\nFailed to return to the original directory\033[0m"
exit 1
}

# Fix brew linking of qt5
echo -e "\033[36m> Fixing brew linking of qt5...\033[0m"
brew unlink qt && brew link qt@5
Expand Down Expand Up @@ -310,4 +329,4 @@ echo
echo "To deactivate this workspace, run:"
echo -e "\033[33mdeactivate\n\n\033[0m"

# popd || exit
# popd || exit

0 comments on commit ccb52cf

Please sign in to comment.