Skip to content

Commit f59e48c

Browse files
committed
fix: split local declaration to satisfy ShellCheck SC2155
1 parent 6cc740a commit f59e48c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/copy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ _fast_copy_dir() {
9696
return 0
9797
fi
9898
# Clean up any partial clone output before fallback
99-
local _clone_target="${dest%/}/$(basename "$src")"
99+
local _clone_target
100+
_clone_target="${dest%/}/$(basename "$src")"
100101
if [ -e "$_clone_target" ]; then rm -rf "$_clone_target"; fi
101102
cp -RP "$src" "$dest"
102103
;;

0 commit comments

Comments
 (0)