fix bash + python3 shebangs (#33287)

fix shebangs
old-commit-hash: 1dcd660815
This commit is contained in:
Maxime Desroches 2024-08-13 21:22:13 -07:00 committed by GitHub
parent b97ed10ea1
commit c551f1d239
44 changed files with 49 additions and 49 deletions

View File

@ -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"

View File

@ -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

View File

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

View File

@ -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)"

View File

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

View File

@ -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)"

View File

@ -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

View File

@ -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>"

View File

@ -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)"

View File

@ -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

View File

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

View File

@ -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)"

View File

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

View File

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

View File

@ -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/*

View File

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

View File

@ -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/../../../")
@ -9,4 +9,4 @@ INTERNAL_SEG_CNT=300
FILEREADER_CACHE=1 FILEREADER_CACHE=1
INTERNAL_SEG_LIST=selfdrive/car/tests/test_models_segs.txt 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

View File

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

View File

@ -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

View File

@ -1,10 +1,10 @@
#!/bin/bash #!/usr/bin/env bash
SCRIPT_DIR=$(dirname "$0") SCRIPT_DIR=$(dirname "$0")
BASEDIR=$(realpath "$SCRIPT_DIR/../../") BASEDIR=$(realpath "$SCRIPT_DIR/../../")
cd $BASEDIR 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 # needs a machine with lots of cores
scons --clean scons --clean
scons --no-cache --random -j$(nproc) scons --no-cache --random -j$(nproc)

View File

@ -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

View File

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

View File

@ -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

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -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/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# install depends # install depends
sudo apt update 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 update
sudo apt-get install -y mono-complete 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"

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -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"