Describe develpment helper script clone_root.sh
It would be nice that script clone_root.sh
would have more friendly UI:
- Running
./clone_root.sh -h
gives following result
+ ADDR=
+ PTH=
+ [ 1 -gt 0 ]
+ echo Usage: ./clone_root.sh [OPTION].. ADDR PATH
Usage: ./clone_root.sh [OPTION].. ADDR PATH
+ echo Clone relevant files and directories from router for testing.
Clone relevant files and directories from router for testing.
+ echo
+ echo ADDR:
ADDR:
+ echo Address of router (or SSH identifier).
Address of router (or SSH identifier).
+ echo PATH:
PATH:
+ echo Directory to copy root to.
Directory to copy root to.
+ echo Options:
Options:
+ echo -h, --help
-h, --help
+ echo Print this help text
Print this help text
+ exit 0
which seem is unexpected.
- It is necessary to run as
root
or withsudo
, but it's not specified in any way (in help or README.md) - It would be nice, when the result is zipped as is all other data.