Relax some shellcheck tests and fix remaining issues

parent dd5e4065
......@@ -2,5 +2,6 @@
set -e
# setup application environment
# shellcheck disable=SC1091
source "/root/catkin_ws/install/setup.bash"
exec "$@"
#!/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
#!/usr/bin/env bash
for foo in $(find $(pwd) -name "package.xml") ; do
package_name=$(basename $(realpath $(dirname $foo)))
echo Entering package: $package_name
cd $(realpath $(dirname $foo))
if [[ -n $(grep -i "roslaunch_add_file_check" CMakeLists.txt) ]] ; then
echo Package $package_name already has roslaunch_add_file_check - skipping
# shellcheck disable=SC2044
for foo in $(find "$(pwd)" -name "package.xml") ; do
package_name=$(basename "$(realpath "$(dirname "$foo")")")
echo Entering package: "$package_name"
cd "$(realpath "$(dirname "$foo")")" || exit
if grep -q -i "roslaunch_add_file_check" CMakeLists.txt; then
echo Package "$package_name" already has roslaunch_add_file_check - skipping
else
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
## WARNING: automatically generated code; can be (and probably is) very buggy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment