Browse Source

fix(shellcheck): declare and assign separately in router.sh (SC2155) (#231)

Darren Hinde 1 month ago
parent
commit
8e8084e4ae
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .opencode/skill/project-orchestration/router.sh

+ 2 - 1
.opencode/skill/project-orchestration/router.sh

@@ -51,7 +51,8 @@ fi
 
 # Find project root
 find_project_root() {
-    local dir="$(pwd)"
+    local dir
+    dir="$(pwd)"
     while [ "$dir" != "/" ]; do
         if [ -d "$dir/.git" ] || [ -f "$dir/package.json" ]; then
             echo "$dir"