History

installer.sh.in: add " again" just once

Jürgen Buchmüller committed 5 years ago

Commit 0076aca1 parent 3cb1d241 file · +6 −6Browse files

Unified · Split

installer.sh.in+6−6
@@ -627,15 +627,15 @@ set_hostname() { · 626 unmodified lines
627}627}
628 628
629menu_rootpassword() {629menu_rootpassword() {
630 local _firstpass _secondpass _desc630 local _firstpass _secondpass _again _desc
631 631
632 while true; do632 while true; do
633 if [ -z "${_firstpass}" ]; then633 if [ -z "${_firstpass}" ]; then
634 _desc="Enter the root password"634 _desc="Enter the root password"
635 else635 else
636 _desc="$_desc again"636 _again=" again"
637 fi637 fi
638 DIALOG --insecure --passwordbox "${_desc}" ${INPUTSIZE}638 DIALOG --insecure --passwordbox "${_desc}${_again}" ${INPUTSIZE}
639 if [ $? -eq 0 ]; then639 if [ $? -eq 0 ]; then
640 if [ -z "${_firstpass}" ]; then640 if [ -z "${_firstpass}" ]; then
641 _firstpass="$(cat $ANSWER)"641 _firstpass="$(cat $ANSWER)"
@@ -663,7 +663,7 @@ set_rootpassword() { · 21 unmodified lines
663}663}
664 664
665menu_useraccount() {665menu_useraccount() {
666 local _firstpass _secondpass _desc666 local _firstpass _secondpass _desc _again
667 local _groups _status _group _checklist667 local _groups _status _group _checklist
668 local _preset668 local _preset
669 669
@@ -698,9 +698,9 @@ menu_useraccount() { · 28 unmodified lines
698 if [ -z "${_firstpass}" ]; then698 if [ -z "${_firstpass}" ]; then
699 _desc="Enter the password for login '$(get_option USERLOGIN)'"699 _desc="Enter the password for login '$(get_option USERLOGIN)'"
700 else700 else
701 _desc="$_desc again"701 _again=" again"
702 fi702 fi
703 DIALOG --insecure --passwordbox "${_desc}" ${INPUTSIZE}703 DIALOG --insecure --passwordbox "${_desc}${_again}" ${INPUTSIZE}
704 if [ $? -eq 0 ]; then704 if [ $? -eq 0 ]; then
705 if [ -z "${_firstpass}" ]; then705 if [ -z "${_firstpass}" ]; then
706 _firstpass="$(cat $ANSWER)"706 _firstpass="$(cat $ANSWER)"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t