Browse Source

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

darrenhinde 5 months ago
parent
commit
bbecca3373
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
 find_project_root() {
 find_project_root() {
-    local dir="$(pwd)"
+    local dir
+    dir="$(pwd)"
     while [ "$dir" != "/" ]; do
     while [ "$dir" != "/" ]; do
         if [ -d "$dir/.git" ] || [ -f "$dir/package.json" ]; then
         if [ -d "$dir/.git" ] || [ -f "$dir/package.json" ]; then
             echo "$dir"
             echo "$dir"