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
627627 }
628628
629629 menu_rootpassword() {
630− local _firstpass _secondpass _desc
630+ local _firstpass _secondpass _again _desc
631631
632632 while true; do
633633 if [ -z "${_firstpass}" ]; then
634634 _desc="Enter the root password"
635635 else
636− _desc="$_desc again"
636+ _again=" again"
637637 fi
638− DIALOG --insecure --passwordbox "${_desc}" ${INPUTSIZE}
638+ DIALOG --insecure --passwordbox "${_desc}${_again}" ${INPUTSIZE}
639639 if [ $? -eq 0 ]; then
640640 if [ -z "${_firstpass}" ]; then
641641 _firstpass="$(cat $ANSWER)"
@@ -663,7 +663,7 @@ set_rootpassword() { · 21 unmodified lines
663663 }
664664
665665 menu_useraccount() {
666− local _firstpass _secondpass _desc
666+ local _firstpass _secondpass _desc _again
667667 local _groups _status _group _checklist
668668 local _preset
669669
@@ -698,9 +698,9 @@ menu_useraccount() { · 28 unmodified lines
698698 if [ -z "${_firstpass}" ]; then
699699 _desc="Enter the password for login '$(get_option USERLOGIN)'"
700700 else
701− _desc="$_desc again"
701+ _again=" again"
702702 fi
703− DIALOG --insecure --passwordbox "${_desc}" ${INPUTSIZE}
703+ DIALOG --insecure --passwordbox "${_desc}${_again}" ${INPUTSIZE}
704704 if [ $? -eq 0 ]; then
705705 if [ -z "${_firstpass}" ]; then
706706 _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