Просмотр исходного кода

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

Darren Hinde 6 месяцев назад
Родитель
Сommit
8e8084e4ae
1 измененных файлов с 2 добавлено и 1 удалено
  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"