1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +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##*.}"
for extension in "${ARTIFACT_EXTENSIONS[@]}"; do
install -Dm0644 \
"${src%.*}.$extension" \
"${dest%.*}.$extension"
install -Dm0644 \
"${src%.*}.$extension" \
"${dest%.*}.$extension"
done
printf "%s" "$dest"
@ -66,28 +66,28 @@ main() {
worktree_build "$BOOTLOADER_DIR"
local bootloader_path="$(worktree_copy \
"$BOOTLOADER_DIR" \
"$BOOTLOADER_FILENAME" \
"bl*")"
"$BOOTLOADER_DIR" \
"$BOOTLOADER_FILENAME" \
"bl*")"
worktree_setup "$FIRMWARE_DIR" "$firmware_commit"
cp "$BOOTLOADER_PATH" "$FIRMWARE_DIR/$BOOTLOADER_FILENAME"
worktree_build "$FIRMWARE_DIR"
local firmware_path="$(worktree_copy \
"$FIRMWARE_DIR" \
"$FIRMWARE_FILENAME" \
"v*")"
"$FIRMWARE_DIR" \
"$FIRMWARE_FILENAME" \
"v*")"
printf "\n\n"; script/fingerprint \
"$bootloader_path" \
--max-size 32768 \
--double
"$bootloader_path" \
--max-size 32768 \
--double
printf "\n\n"; script/fingerprint \
"$firmware_path" \
--offset 256 \
--max-size 491520
"$firmware_path" \
--offset 256 \
--max-size 491520
}
main "$@"

View File

@ -1,7 +1,7 @@
#!/bin/bash
# script/toolchain-download: Download and extract the GNU Arm Embedded toolchain
# for building the TREZOR firmware.
# for building the TREZOR firmware.
set -e
@ -37,8 +37,8 @@ extract_download() {
if [ ! -d "$DIRECTORY" ]; then
if ! validate_download; then
download_file
validate_download
download_file
validate_download
fi
extract_download