1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

script: fix whitespace

This commit is contained in:
Pavol Rusnak 2018-06-27 18:12:18 +02:00
parent 7949911748
commit 632e55b190
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 18 additions and 18 deletions

View File

@ -50,9 +50,9 @@ worktree_copy() {
local dest="$BUILD_DIR/${basename%.*}-$describe.${basename##*.}" local dest="$BUILD_DIR/${basename%.*}-$describe.${basename##*.}"
for extension in "${ARTIFACT_EXTENSIONS[@]}"; do for extension in "${ARTIFACT_EXTENSIONS[@]}"; do
install -Dm0644 \ install -Dm0644 \
"${src%.*}.$extension" \ "${src%.*}.$extension" \
"${dest%.*}.$extension" "${dest%.*}.$extension"
done done
printf "%s" "$dest" printf "%s" "$dest"
@ -66,28 +66,28 @@ main() {
worktree_build "$BOOTLOADER_DIR" worktree_build "$BOOTLOADER_DIR"
local bootloader_path="$(worktree_copy \ local bootloader_path="$(worktree_copy \
"$BOOTLOADER_DIR" \ "$BOOTLOADER_DIR" \
"$BOOTLOADER_FILENAME" \ "$BOOTLOADER_FILENAME" \
"bl*")" "bl*")"
worktree_setup "$FIRMWARE_DIR" "$firmware_commit" worktree_setup "$FIRMWARE_DIR" "$firmware_commit"
cp "$BOOTLOADER_PATH" "$FIRMWARE_DIR/$BOOTLOADER_FILENAME" cp "$BOOTLOADER_PATH" "$FIRMWARE_DIR/$BOOTLOADER_FILENAME"
worktree_build "$FIRMWARE_DIR" worktree_build "$FIRMWARE_DIR"
local firmware_path="$(worktree_copy \ local firmware_path="$(worktree_copy \
"$FIRMWARE_DIR" \ "$FIRMWARE_DIR" \
"$FIRMWARE_FILENAME" \ "$FIRMWARE_FILENAME" \
"v*")" "v*")"
printf "\n\n"; script/fingerprint \ printf "\n\n"; script/fingerprint \
"$bootloader_path" \ "$bootloader_path" \
--max-size 32768 \ --max-size 32768 \
--double --double
printf "\n\n"; script/fingerprint \ printf "\n\n"; script/fingerprint \
"$firmware_path" \ "$firmware_path" \
--offset 256 \ --offset 256 \
--max-size 491520 --max-size 491520
} }
main "$@" main "$@"

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/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.
set -e set -e
@ -37,8 +37,8 @@ extract_download() {
if [ ! -d "$DIRECTORY" ]; then if [ ! -d "$DIRECTORY" ]; then
if ! validate_download; then if ! validate_download; then
download_file download_file
validate_download validate_download
fi fi
extract_download extract_download