Skip to content

Commit

Permalink
Restyle [scripts] created bootstrap script for ZAPZap scripts refinem…
Browse files Browse the repository at this point in the history
…ent (#80)

* Restyled by shfmt

* Restyled by autopep8

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
restyled-io[bot] and restyled-commits authored Sep 29, 2022
1 parent e08c97f commit 6f645da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/tools/zap/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def runBootstrap():
def main():
checkPythonVersion()
zap_file, run_bootstrap = runArgumentsParser()
if run_bootstrap:
if run_bootstrap:
runBootstrap()
os.chdir(CHIP_ROOT_DIR)

Expand Down
6 changes: 3 additions & 3 deletions scripts/tools/zap/zap_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ function _get_fullpath() {
cd "$(dirname "$1")" && echo "$PWD/$(basename "$1")"
}

function _usage {
cat << EOF
function _usage() {
cat <<EOF
Invalid arguments passed.
Usage:
zap_bootstrap.sh -> install and update required packages
zap_bootstrap.sh -c -> run a clean bootstrap, install packages from scratch
EOF
exit 1
exit 1
}

set -e
Expand Down

0 comments on commit 6f645da

Please sign in to comment.