mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
remove user input whitespaces #59
This commit is contained in:
@@ -11,7 +11,7 @@ while [ ${#result} -eq 0 ]
|
|||||||
l1="Please enter the name of your new RaspiBlitz:\n"
|
l1="Please enter the name of your new RaspiBlitz:\n"
|
||||||
l2="one word, keep characters basic & not too long"
|
l2="one word, keep characters basic & not too long"
|
||||||
dialog --backtitle "RaspiBlitz - Setup" --inputbox "$l1$l2" 11 52 2>$_temp
|
dialog --backtitle "RaspiBlitz - Setup" --inputbox "$l1$l2" 11 52 2>$_temp
|
||||||
result=`cat $_temp`
|
result=$( cat $_temp | tr -d [:space:] )
|
||||||
shred $_temp
|
shred $_temp
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ dialog --backtitle "RaspiBlitz - Setup"\
|
|||||||
--inputbox "Please enter your Master/Admin Password A:\n!!! This is new password to login per SSH !!!" 10 52 2>$_temp
|
--inputbox "Please enter your Master/Admin Password A:\n!!! This is new password to login per SSH !!!" 10 52 2>$_temp
|
||||||
|
|
||||||
# get user input
|
# get user input
|
||||||
result=`cat $_temp`
|
result=$( cat $_temp | tr -d [:space:] )
|
||||||
shred $_temp
|
shred $_temp
|
||||||
|
|
||||||
# check input (check for more later)
|
# check input (check for more later)
|
||||||
@@ -67,7 +67,7 @@ while [ ${#result} -lt 8 ]
|
|||||||
do
|
do
|
||||||
dialog --backtitle "RaspiBlitz - Setup"\
|
dialog --backtitle "RaspiBlitz - Setup"\
|
||||||
--inputbox "Enter your RPC Password B (min 8 chars):" 9 52 2>$_temp
|
--inputbox "Enter your RPC Password B (min 8 chars):" 9 52 2>$_temp
|
||||||
result=`cat $_temp`
|
result=$( cat $_temp | tr -d [:space:] )
|
||||||
shred $_temp
|
shred $_temp
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user