Skip to content

Commit d26e311

Browse files
committed
bin: copy: Refactor
copy() made some...creative...use of control flow that made it quite difficult to follow. Take a first priciples approach to simplify the logic.
1 parent 11cf4dd commit d26e311

File tree

5 files changed

+443
-377
lines changed

5 files changed

+443
-377
lines changed

src/bin/copy.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _copy_completion()
1212
opts="-h -n -q -s -t -u -v"
1313

1414
local datastores_dst="running-config startup-config"
15-
local datastores_src="running-config startup-config factory-config"
15+
local datastores_src="factory-config operational-state running-config"
1616

1717
case "${prev}" in
1818
-t)

0 commit comments

Comments
 (0)