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
BASEDIR="/data/openpilot"

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
export OMP_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

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -ex
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 -x

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
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
git -C $submodule fetch --depth 3000 origin master

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex
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 con up esim

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
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)"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
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.auto-config yes

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import termios
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 )"
cd $DIR

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
if [ ! -d perfetto ]; then
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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
curl -LO https://get.perfetto.dev/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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
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
set -e

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
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 BLOCK="${BLOCK},camerad"