1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

all: replace /bin/bash with /usr/bin/env bash

This commit is contained in:
Tomas Susanka 2019-09-12 15:42:04 +02:00 committed by Pavol Rusnak
parent cad297ed36
commit 75c539ec55
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
19 changed files with 19 additions and 19 deletions

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
find ../mocks -name '*.py' | sort | while read module; do find ../mocks -name '*.py' | sort | while read module; do
module=$(echo $module | sed 's:^\.\./mocks/::') module=$(echo $module | sed 's:^\.\./mocks/::')
base=$(basename $module) base=$(basename $module)

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
declare -a results declare -a results
declare -i PYOPT=1 passed=0 failed=0 exit_code=0 declare -i PYOPT=1 passed=0 failed=0 exit_code=0

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
: "${RUN_TEST_EMU:=1}" : "${RUN_TEST_EMU:=1}"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
: "${RUN_PYTHON_TESTS:=0}" : "${RUN_PYTHON_TESTS:=0}"
: "${FORCE_DOCKER_USE:=0}" : "${FORCE_DOCKER_USE:=0}"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# expected inputs: # expected inputs:
# TREZOR_SRC -- directory containing python code for uMP # TREZOR_SRC -- directory containing python code for uMP

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import glob import glob
import os import os
import subprocess import subprocess

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
st-flash write combined.bin 0x8000000 st-flash write combined.bin 0x8000000

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
cat > u2f_keys.h <<EOF cat > u2f_keys.h <<EOF

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/bootstrap: Resolve all dependencies that the application requires to # script/bootstrap: Resolve all dependencies that the application requires to
# run. # run.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/cibuild: Setup environment for CI to run tests. This is primarily # script/cibuild: Setup environment for CI to run tests. This is primarily
# designed to run on the continuous integration server. # designed to run on the continuous integration server.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/setup: Set up application for the first time after cloning, or set it # script/setup: Set up application for the first time after cloning, or set it
# back to the initial first unused state. # back to the initial first unused state.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/test: Run test suite for application. # script/test: Run test suite for application.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/toolchain-download: Download and extract the GNU Arm Embedded toolchain # script/toolchain-download: Download and extract the GNU Arm Embedded toolchain
# for building the Trezor firmware. # for building the Trezor firmware.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# script/toolchain-run: Run command with downloaded GNU Arm Embedded toolchain. # script/toolchain-run: Run command with downloaded GNU Arm Embedded toolchain.
# #

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd $(dirname $0)/.. cd $(dirname $0)/..
DEST=src/trezorlib/coins.json DEST=src/trezorlib/coins.json

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
SITE="https://firmware.corp.sldev.cz/upgrade_tests/" SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
cd "$(dirname "$0")" cd "$(dirname "$0")"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd $(dirname $0)/.. cd $(dirname $0)/..
PROTOB=common/protob PROTOB=common/protob

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
error=0 error=0
for f in $*; do for f in $*; do
changes=$(clang-format -output-replacements-xml "$f" | grep -c '^<replacement '; exit ${PIPESTATUS[0]}) changes=$(clang-format -output-replacements-xml "$f" | grep -c '^<replacement '; exit ${PIPESTATUS[0]})