Skip to content

Commit d8ff310

Browse files
committed
Standardize padding style in deploy script
This is the shell script code formatting style required for compliance with the shfmt formatter tool.
1 parent 2504dea commit d8ff310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GIT_REV="$(git log --pretty=format:'%h' -n 1)"
33
BUILD_DATE="$(date +%Y-%m-%d:%H:%M:%S)"
44
COMPILEINFO="$(echo "+${GIT_REV}+${BUILD_DATE}" | tr -d '"')"
55

6-
VERSION="$(grep "const AppVersion" main.go |cut -f4 -d " " | tr -d '"')"
6+
VERSION="$(grep "const AppVersion" main.go | cut -f4 -d " " | tr -d '"')"
77

88
#Remember to set GOROOT accordingly with your installation
99

@@ -19,7 +19,7 @@ mkdir distrib
1919
for folder in "${target_folders[@]}"
2020
do
2121

22-
IFS=_ read -r -a fields <<< "$folder"
22+
IFS=_ read -r -a fields <<<"$folder"
2323
mkdir -p "distrib/${folder}/bin/"
2424
GOOS="${fields[0]}" GOARCH="${fields[1]}" go build -o "distrib/${folder}/bin/arduinoOTA" -ldflags "-X main.compileInfo=$COMPILEINFO" main.go
2525
done

0 commit comments

Comments
 (0)