Skip to content

Commit

Permalink
#167 Resolve ShellCheck linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlm committed Oct 27, 2023
1 parent 7e3dfd6 commit dfad3e7
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions scenario-runner/install_carma_scenario_runner
Original file line number Diff line number Diff line change
Expand Up @@ -97,45 +97,44 @@ USAGE
# 0 if the download succeeded
#######################################
function install_minimal_scenario_runner() {
git clone \
if ! git clone \
-c advice.detachedHead=false \
--depth 1 \
--branch "${SCENARIO_RUNNER_VERSION}" \
https://github.com/carla-simulator/scenario_runner.git \
"${SCENARIO_RUNNER_HOME}"

if [[ "$?" -ne 0 ]]; then
then
err "error: could not clone scenario_runner repository"
return "$?"
fi

cd "${SCENARIO_RUNNER_HOME}"

python3 -m pip install --upgrade --no-cache-dir -r requirements.txt

rm -rf \
CARLA_VER \
Dockerfile \
Docs \
.git \
.github \
.gitignore \
Jenkinsfile \
LICENSE \
manual_control.py \
metrics_manager.py \
mkdocs.yml \
no_rendering_mode.py \
.pylintrc \
README.md \
.readthedocs.yml \
requirements.txt \
tests

# We will replace the provided scenarios with our own
rm -rf srunner/examples

cd - > /dev/null
(
cd "${SCENARIO_RUNNER_HOME}" || exit

python3 -m pip install --upgrade --no-cache-dir -r requirements.txt

rm -rf \
CARLA_VER \
Dockerfile \
Docs \
.git \
.github \
.gitignore \
Jenkinsfile \
LICENSE \
manual_control.py \
metrics_manager.py \
mkdocs.yml \
no_rendering_mode.py \
.pylintrc \
README.md \
.readthedocs.yml \
requirements.txt \
tests

# We will replace the provided scenarios with our own
rm -rf srunner/examples
)
}

#######################################
Expand Down

0 comments on commit dfad3e7

Please sign in to comment.