From 2a53f95e793caaa99d0692b7024179555c265125 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 16 Apr 2019 04:15:18 +0100 Subject: [PATCH] wordstring --- home.admin/70initLND.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home.admin/70initLND.sh b/home.admin/70initLND.sh index a5f35b278..2645f7043 100755 --- a/home.admin/70initLND.sh +++ b/home.admin/70initLND.sh @@ -209,11 +209,11 @@ if [ ${walletExists} -eq 0 ]; then if [ "${CHOICE}" == "SEED_SCB" ]; then # dialog to enter - #$_temp="/home/admin/.seed.tmp" - dialog --backtitle "RaspiBlitz - LND Recover" --inputbox "Please enter/paste the SEED WORD LIST:\n(just the words, seperated by commas, in correct order as numbered)" 9 78 - #wordstring=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' ) - #shred $_temp - #echo "processing ..." + $_temp="/home/admin/.seed.tmp" + dialog --backtitle "RaspiBlitz - LND Recover" --inputbox "Please enter/paste the SEED WORD LIST:\n(just the words, seperated by commas, in correct order as numbered)" 9 78 2>$_temp + wordstring=$( cat $_temp | tr -dc '[:alnum:]-.' | tr -d ' ' ) + shred $_temp + echo "processing ... ${wordstring}" # remove spaces #wordstring=$(echo "${wordstring}" | sed 's/[^a-zA-Z0-9 ]//g')