Skip to content

Commit e914203

Browse files
committed
Fix local res in tue-install-git
1 parent 6e9137f commit e914203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/tue-install-impl.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ function tue-install-git
378378
tue-install-error "Target directory path cannot be empty"
379379
fi
380380

381+
local res
381382
if [ ! -d "$targetdir" ]
382383
then
383384
tue-install-debug "git clone --recursive $repo $targetdir"
@@ -403,7 +404,6 @@ function tue-install-git
403404
tue-install-info "URL has switched to $repo"
404405
fi
405406

406-
local res
407407
tue-install-debug "git -C $targetdir pull --ff-only --prune"
408408
res=$(git -C "$targetdir" pull --ff-only --prune 2>&1)
409409
tue-install-debug "res: $res"

0 commit comments

Comments
 (0)