fix bash + python3 shebangs (#33287)

fix shebangs
pull/33291/head
Maxime Desroches 9 months ago committed by GitHub
parent 65fccbf756
commit 1dcd660815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      launch_chffrplus.sh
  2. 2
      launch_env.sh
  3. 2
      launch_openpilot.sh
  4. 2
      release/build_devel.sh
  5. 2
      release/build_release.sh
  6. 2
      release/check-dirty.sh
  7. 2
      release/check-submodules.sh
  8. 2
      scripts/apply-pr.sh
  9. 2
      scripts/build_small.sh
  10. 2
      scripts/cell.sh
  11. 2
      scripts/checkout-pr.sh
  12. 2
      scripts/launch_corolla.sh
  13. 2
      scripts/lint.sh
  14. 2
      scripts/retry.sh
  15. 2
      selfdrive/assets/compress-images.sh
  16. 2
      selfdrive/assets/strip-svg-metadata.sh
  17. 4
      selfdrive/car/tests/big_cars_test.sh
  18. 2
      selfdrive/debug/adb.sh
  19. 2
      selfdrive/modeld/tests/tf_test/build.sh
  20. 6
      selfdrive/test/scons_build_test.sh
  21. 4
      selfdrive/test/setup_device_ci.sh
  22. 2
      selfdrive/test/setup_vsound.sh
  23. 2
      selfdrive/ui/installer/continue_openpilot.sh
  24. 2
      selfdrive/ui/tests/create_test_translations.sh
  25. 2
      system/hardware/tici/restart_modem.sh
  26. 2
      tools/joystick/joystickd.py
  27. 2
      tools/lib/kbhit.py
  28. 2
      tools/profiling/clpeak/build.sh
  29. 2
      tools/profiling/ftrace.sh
  30. 2
      tools/profiling/palanteer/setup.sh
  31. 2
      tools/profiling/perfetto/build.sh
  32. 2
      tools/profiling/perfetto/copy.sh
  33. 2
      tools/profiling/perfetto/record.sh
  34. 2
      tools/profiling/perfetto/server.sh
  35. 2
      tools/profiling/perfetto/traces.sh
  36. 2
      tools/profiling/snapdragon/setup-agnos.sh
  37. 4
      tools/profiling/snapdragon/setup-profiler.sh
  38. 2
      tools/profiling/watch-irqs.sh
  39. 2
      tools/rerun/run.sh
  40. 2
      tools/scripts/save_ubloxraw_stream.py
  41. 2
      tools/serial/connect.sh
  42. 2
      tools/sim/launch_openpilot.sh
  43. 2
      tools/sim/run_bridge.py
  44. 2
      tools/webcam/start_camerad.sh

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
if [ -z "$BASEDIR" ]; then
BASEDIR="/data/openpilot"

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
export OMP_NUM_THREADS=1
export MKL_NUM_THREADS=1

@ -1,3 +1,3 @@
#!/usr/bin/bash
#!/usr/bin/env bash
exec ./launch_chffrplus.sh

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
set -x

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
while read hash submodule ref; do
git -C $submodule fetch --depth 3000 origin master

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
echo "usage: $0 <pull-request-number>"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

@ -1,3 +1,3 @@
#!/usr/bin/bash
#!/usr/bin/env bash
nmcli connection modify --temporary esim ipv4.route-metric 1 ipv6.route-metric 1
nmcli con up esim

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
if [ $# -eq 0 ]; then

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
RED='\033[0;31m'

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function fail {
echo $1 >&2

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "compressing training guide images"
optipng -o7 -strip all training/*

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# sudo apt install scour

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../../")
@ -9,4 +9,4 @@ INTERNAL_SEG_CNT=300
FILEREADER_CACHE=1
INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt
cd selfdrive/car/tests && pytest test_models.py test_car_interfaces.py
cd selfdrive/car/tests && pytest test_models.py test_car_interfaces.py

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
PORT=5555

@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
clang++ -I /home/batman/one/external/tensorflow/include/ -L /home/batman/one/external/tensorflow/lib -Wl,-rpath=/home/batman/one/external/tensorflow/lib main.cc -ltensorflow

@ -1,10 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../")
cd $BASEDIR
# tests that our build system's dependencies are configured properly,
# tests that our build system's dependencies are configured properly,
# needs a machine with lots of cores
scons --clean
scons --no-cache --random -j$(nproc)
scons --no-cache --random -j$(nproc)

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
@ -23,7 +23,7 @@ rm -rf /data/safe_staging/* || true
CONTINUE_PATH="/data/continue.sh"
tee $CONTINUE_PATH << EOF
#!/usr/bin/bash
#!/usr/bin/env bash
sudo abctl --set_success

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
{
#start pulseaudio daemon

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
cd /data/openpilot
exec ./launch_openpilot.sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
#nmcli connection modify --temporary lte gsm.home-only yes
#nmcli connection modify --temporary lte gsm.auto-config yes

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import argparse
import threading

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import termios
import atexit

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
cd /sys/kernel/tracing

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
if [ ! -d perfetto ]; then
git clone https://android.googlesource.com/platform/external/perfetto/

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
curl -LO https://get.perfetto.dev/trace_processor
chmod +x ./trace_processor

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# TODO: there's probably a better way to do this

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# install depends
sudo apt update
@ -11,4 +11,4 @@ echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | su
sudo apt update
sudo apt-get install -y mono-complete
echo "Setup successful, you should now be able to run the profiler with cd SnapdragonProfiler and ./run_sdp.sh"
echo "Setup successful, you should now be able to run the profiler with cd SnapdragonProfiler and ./run_sdp.sh"

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
RUBYOPT="-W0" irqtop -d1 -R

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
# TODO: remove this file once Rerun has interface to set log message level
set -e

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
import os
import sys

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
while true; do
if ls /dev/serial/by-id/usb-FTDI_FT230X* 2> /dev/null; then

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
export PASSIVE="0"
export NOBOARD="1"

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
from typing import Any

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# export the block below when call manager.py
export BLOCK="${BLOCK},camerad"

Loading…
Cancel
Save