fix(shellcheck): declare and assign separately in router.sh (SC2155) (#231)
This commit is contained in:
parent
9e5e70a12d
commit
8e8084e4ae
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue