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

pull/520/head
Tomas Susanka 5 years ago committed by Pavol Rusnak
parent cad297ed36
commit 75c539ec55
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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