Skip to content
Snippets Groups Projects
Commit 828e137f authored by Prada Sarasola, Miguel's avatar Prada Sarasola, Miguel
Browse files

Relax some shellcheck tests and fix remaining issues

parent dd5e4065
No related branches found
No related tags found
1 merge request!25Tests
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
set -e set -e
# setup application environment # setup application environment
# shellcheck disable=SC1091
source "/root/catkin_ws/install/setup.bash" source "/root/catkin_ws/install/setup.bash"
exec "$@" exec "$@"
#!/bin/bash #!/bin/bash
echo Looking up and executing user entry scripts in: $1 echo Looking up and executing user entry scripts in: "$1"
find -L $1 -name ci_entry_script.bash -exec bash -c 'echo Running entry script from $(basename $(dirname {})) ; {} ' \; find -L "$1" -name ci_entry_script.bash -exec bash -c 'echo Running entry script from $(basename $(dirname $1)) ; $1 ' _ {} \;
echo Finalized running the user entry scripts echo Finalized running the user entry scripts
#!/usr/bin/env bash #!/usr/bin/env bash
for foo in $(find $(pwd) -name "package.xml") ; do # shellcheck disable=SC2044
package_name=$(basename $(realpath $(dirname $foo))) for foo in $(find "$(pwd)" -name "package.xml") ; do
echo Entering package: $package_name package_name=$(basename "$(realpath "$(dirname "$foo")")")
cd $(realpath $(dirname $foo)) echo Entering package: "$package_name"
if [[ -n $(grep -i "roslaunch_add_file_check" CMakeLists.txt) ]] ; then cd "$(realpath "$(dirname "$foo")")" || exit
echo Package $package_name already has roslaunch_add_file_check - skipping if grep -q -i "roslaunch_add_file_check" CMakeLists.txt; then
echo Package "$package_name" already has roslaunch_add_file_check - skipping
else else
if [[ -n $(find . -type f -name "*.launch") ]] ; then if [[ -n $(find . -type f -name "*.launch") ]] ; then
echo Adding roslaunch_add_file_check to $package_name echo Adding roslaunch_add_file_check to "$package_name"
cat <<EOT >> CMakeLists.txt cat <<EOT >> CMakeLists.txt
## WARNING: automatically generated code; can be (and probably is) very buggy ## WARNING: automatically generated code; can be (and probably is) very buggy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment