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. 2
      selfdrive/car/tests/big_cars_test.sh
  18. 2
      selfdrive/debug/adb.sh
  19. 2
      selfdrive/modeld/tests/tf_test/build.sh
  20. 2
      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. 2
      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 if [ -z "$BASEDIR" ]; then
BASEDIR="/data/openpilot" BASEDIR="/data/openpilot"

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

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

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

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

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
set -e set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" 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 while read hash submodule ref; do
git -C $submodule fetch --depth 3000 origin master git -C $submodule fetch --depth 3000 origin master

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

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -ex set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" 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 connection modify --temporary esim ipv4.route-metric 1 ipv6.route-metric 1
nmcli con up esim nmcli con up esim

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

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

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

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

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

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

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
SCRIPT_DIR=$(dirname "$0") SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../../") BASEDIR=$(realpath "$SCRIPT_DIR/../../../")

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
set -e set -e
PORT=5555 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 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,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
SCRIPT_DIR=$(dirname "$0") SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../") BASEDIR=$(realpath "$SCRIPT_DIR/../../")

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

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

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

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e 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.home-only yes
#nmcli connection modify --temporary lte gsm.auto-config 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 os
import argparse import argparse
import threading import threading

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

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

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

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

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
if [ ! -d perfetto ]; then if [ ! -d perfetto ]; then
git clone https://android.googlesource.com/platform/external/perfetto/ 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 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)" DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR cd $DIR

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
curl -LO https://get.perfetto.dev/trace_processor curl -LO https://get.perfetto.dev/trace_processor
chmod +x ./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 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 # TODO: there's probably a better way to do this

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

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
set -e set -e
RUBYOPT="-W0" irqtop -d1 -R 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 # TODO: remove this file once Rerun has interface to set log message level
set -e set -e

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

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
while true; do while true; do
if ls /dev/serial/by-id/usb-FTDI_FT230X* 2> /dev/null; then 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 PASSIVE="0"
export NOBOARD="1" export NOBOARD="1"

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

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

Loading…
Cancel
Save