N=7
# variables used in usb functions
+PASSPHRASE=
USB_DECRYPT_NAME="cold-usb"
USB_PATH=
USB_PATH_PRE_DECRYPT=
log_msg "stop bitcoin core:\n\n\tbitcoin-cli stop\n"
}
+check() {
+ local UUIDS=()
+ log_error "not implemented\n"
+ exit 1
+}
+
confirm() {
local RESULT
while true; do
for arg in "$@"; do
shift
case "$arg" in
+ "--check") set -- "$@" "-c" ;;
"--help") set -- "$@" "-h" ;;
"--interactive") set -- "$@" "-i" ;;
"--no-encryption") set -- "$@" "-p" ;;
# parse short options
OPTIND=1
- while getopts "hm:n:ip" opt
+ while getopts "chm:n:ip" opt
do
case "$opt" in
+ "c") set_mode "check" ;;
"h") usage ;;
"i") set_mode "interactive" ;;
"m") set_threshold "$OPTARG" ;;
set_mode() {
case "$1" in
+ "check") MODE="check" ;;
"interactive") MODE="interactive" ;;
*)
log_error "ERROR: unknown mode \"$1\""
validate_parameters
- if [[ "$MODE" == "interactive" ]]; then
- main_interactive
- exit
- fi
+ case "$MODE" in
+ "check")
+ check
+ exit
+ ;;
+ "interactive")
+ main_interactive
+ exit
+ ;;
+ esac
+
+ echo "here"
+ exit 1
bitcoin_core_start