Browse Source

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

pull/543/head
Tomas Susanka 3 years ago committed by Pavol Rusnak
parent
commit
75c539ec55
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
  1. 2
      build-docker.sh
  2. 2
      core/tests/check_coverage.sh
  3. 2
      core/tests/run_tests.sh
  4. 2
      core/tests/run_tests_device_emu.sh
  5. 2
      core/tests/run_tests_device_emu_monero.sh
  6. 2
      core/trezor_cmd.sh
  7. 2
      create_monorepo.py
  8. 2
      legacy/bootloader/combine/write.sh
  9. 2
      legacy/firmware/u2f/genkeys.sh
  10. 2
      legacy/script/bootstrap
  11. 2
      legacy/script/cibuild
  12. 2
      legacy/script/setup
  13. 2
      legacy/script/test
  14. 2
      legacy/script/toolchain-download
  15. 2
      legacy/script/toolchain-run
  16. 2
      python/helper-scripts/build-coins-json.sh
  17. 2
      tests/download_emulators.sh
  18. 2
      tools/build_protobuf
  19. 2
      tools/clang-format-check

2
build-docker.sh

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

2
core/tests/check_coverage.sh

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

2
core/tests/run_tests.sh

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

2
core/tests/run_tests_device_emu.sh

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

2
core/tests/run_tests_device_emu_monero.sh

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

2
core/trezor_cmd.sh

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

2
create_monorepo.py

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

2
legacy/bootloader/combine/write.sh

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

2
legacy/firmware/u2f/genkeys.sh

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

2
legacy/script/bootstrap

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

2
legacy/script/cibuild

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

2
legacy/script/setup

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

2
legacy/script/test

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

2
legacy/script/toolchain-download

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

2
legacy/script/toolchain-run

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

2
python/helper-scripts/build-coins-json.sh

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

2
tests/download_emulators.sh

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

2
tools/build_protobuf

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

2
tools/clang-format-check

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

Loading…
Cancel
Save