From 466c762a888c85c8571cfe753fea4ae64502bf7e Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 30 Dec 2024 18:01:17 +0100 Subject: [PATCH] chore: format --- scripts/sync.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/sync.sh b/scripts/sync.sh index e95fc7e..8d6cdc8 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -271,17 +271,17 @@ function create_workspace { } function format { - header "FORMATTING" - local -r repo_path=$1 - if [ ! -f "$repo_path/package.json" ]; then - echo "Skipping formatting as package.json does not exist in $repo_path" - return - fi - ( - cd "$repo_path" - npm ci --legacy-peer-deps - npx prettier --write "*.md" .github - ) + header "FORMATTING" + local -r repo_path=$1 + if [ ! -f "$repo_path/package.json" ]; then + echo "Skipping formatting as package.json does not exist in $repo_path" + return + fi + ( + cd "$repo_path" + npm ci --legacy-peer-deps + npx prettier --write "*.md" .github + ) } function install_dependencies_on_ci {