Skip to content

[21226] Update types regeneration script homing path #5093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions utils/scripts/update_generated_code_from_idl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ files_needing_output_dir=(
yellow='\E[1;33m'
textreset='\E[1;0m'

if [[ $(ls update_generated_code_from_idl.sh 2>/dev/null | wc -l) != 1 ]]; then
echo "Please, execute this script from its directory"
current_dir=$(git rev-parse --show-toplevel)

if [[ ! "$(pwd -P)" -ef "$current_dir" ]]; then
echo -e "${red}This script must be executed in the repository root directory.${textreset}"
exit -1
fi

Expand All @@ -36,8 +38,6 @@ if [[ -z "$(which fastddsgen)" ]]; then
exit -1
fi

cd ../..

readarray -d '' idl_files < <(find . -iname \*.idl -print0)

for del in ${files_to_exclude[@]}
Expand Down