From ccb52cf956043bd395d08e7e7426507e1a97d2d9 Mon Sep 17 00:00:00 2001 From: yncity <117337263+yncity@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:32:38 +0900 Subject: [PATCH] Update gz_install.sh add gz-transrpot-vendor pkg --- gz_install.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gz_install.sh b/gz_install.sh index 36459d3..8d5ff42 100755 --- a/gz_install.sh +++ b/gz_install.sh @@ -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 @@ -310,4 +329,4 @@ echo echo "To deactivate this workspace, run:" echo -e "\033[33mdeactivate\n\n\033[0m" -# popd || exit \ No newline at end of file +# popd || exit