Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi authored Sep 16, 2024
1 parent 0c876d3 commit 2297a6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ if [ "$(xcode-select -p)" != "/Applications/Xcode.app/Contents/Developer" ]; the
sudo xcode-select -s "/Applications/Xcode.app/Contents/Developer"
XCODE_VERSION=$(xcodebuild -version | grep '^Xcode\s' | sed -E 's/^Xcode[[:space:]]+([0-9\.]+)/\1/')
ACCEPTED_LICENSE_VERSION=$(defaults read /Library/Preferences/com.apple.dt.Xcode 2> /dev/null | grep IDEXcodeVersionForAgreedToGMLicense | cut -d '"' -f 2)
sudo xcodebuild -license
# Check if the Xcode license has been accepted
if [ "$XCODE_VERSION" != "$ACCEPTED_LICENSE_VERSION" ]; then
echo -e "\033[33m⚠️ WARNING: Xcode license needs to be accepted. Please follow the prompts to accept the license.\033[0m"
Expand Down Expand Up @@ -584,4 +585,4 @@ if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
-- -r $ROS_INSTALL_ROOT -v $VIRTUAL_ENV_ROOT
fi

popd || exit
popd || exit

0 comments on commit 2297a6f

Please sign in to comment.