Skip to content

Commit

Permalink
Restyled by shellharden
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and wy-hh committed Sep 8, 2022
1 parent e9bc4ab commit 1291783
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/examples/gn_bl602_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BL602_BOARD=BL-HWC-G1

# Build script for GN examples GitHub workflow.

MATTER_ROOT=$(dirname `readlink -f $0`)/../../
MATTER_ROOT=$(dirname "$(readlink -f "$0")")/../../

source "$(dirname "$0")/../../scripts/activate.sh"

Expand Down
10 changes: 5 additions & 5 deletions scripts/examples/gn_bouffalolab_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -e

# Build script for GN Bouffalolab examples GitHub workflow.

MATTER_ROOT=$(dirname `readlink -f $0`)/../../
MATTER_ROOT=$(dirname "$(readlink -f "$0")")/../../
source "$MATTER_ROOT/scripts/activate.sh"

# export BL_IOT_SDK_PATH=$MATTER_ROOT/third_party/bouffalolab/repo
Expand All @@ -37,13 +37,13 @@ bl702_module_type="BL706C-22"

print_help() {
bl702_boards_help=""
for board in ${bl702_boards[@]}
for board in "${bl702_boards[@]}"
do
bl702_boards_help=$bl702_boards_help$board"\n "
done

bl702_modules_help=""
for module in ${bl702_modules[@]}
for module in "${bl702_modules[@]}"
do
bl702_modules_help=$bl702_modules_help$module"\n "
done
Expand Down Expand Up @@ -113,13 +113,13 @@ else

while [ $# -gt 0 ]; do
if [[ "$1" == "module_type"* ]]; then
module_type=`echo $1 | awk -F'=' '{print $2}'`
module_type=`echo "$1" | awk -F'=' '{print $2}'`

shift
continue
fi
if [[ "$1" == "baudrate"* ]]; then
baudrate=`echo $1 | awk -F'=' '{print $2}'`
baudrate=`echo "$1" | awk -F'=' '{print $2}'`

shift
continue
Expand Down

0 comments on commit 1291783

Please sign in to comment.