Fix: wrong variable being assigned to for user command
This commit is contained in:
parent
16415a7c98
commit
caf5290f4d
@ -8,7 +8,7 @@
|
|||||||
# check for syntax errors
|
# check for syntax errors
|
||||||
# set -n
|
# set -n
|
||||||
|
|
||||||
VER=2.0.91
|
VER=2.0.92
|
||||||
|
|
||||||
# default values {
|
# default values {
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ _sessions="\nUse [Space] to toggle available sessions, use [Enter] to accept the
|
|||||||
_login="\nSelect which of your session choices to use for the initial login.\n\nYou can be change this later by editing your ~/.xinitrc"
|
_login="\nSelect which of your session choices to use for the initial login.\n\nYou can be change this later by editing your ~/.xinitrc"
|
||||||
_autologin="\nDo you want autologin enabled for USER?\n\nIf so the following two files will be created (disable autologin by removing them):\n\n - /home/USER/RC (run startx when logging in on tty1)\n - /etc/systemd/system/getty@tty1.service.d/autologin.conf (login USER without password)\n"
|
_autologin="\nDo you want autologin enabled for USER?\n\nIf so the following two files will be created (disable autologin by removing them):\n\n - /home/USER/RC (run startx when logging in on tty1)\n - /etc/systemd/system/getty@tty1.service.d/autologin.conf (login USER without password)\n"
|
||||||
_packages="\nUse [Space] to move a package into the selected area and press [Enter] to accept the selection.\n\nPackages may be installed by your DE/WM (if any), or for the packages you select."
|
_packages="\nUse [Space] to move a package into the selected area and press [Enter] to accept the selection.\n\nPackages may be installed by your DE/WM (if any), or for the packages you select."
|
||||||
_usercmd="\nEnter command(s) to be run in the newly installed system (chroot).\n\nAn example use case would be installing packages or editing files not offered in the menus.\n\nBecause the command will be run in a chroot not everything may function correctly, additionally the command will not be sanity checked, it's your system so exercise caution.\n\nYou may string more than one command together by using standard bash syntax.\n"
|
_usercmd="\nEnter command to be run in the newly installed system (chroot) below.\n\nAn example use case would be installing packages or editing files not offered in the menus.\n\nBecause the command will be run in a chroot not every command will function correctly, additionally the command will not be sanity checked, it's your system so exercise caution.\n\nMore than one command may be run using standard bash syntax.\n"
|
||||||
_edit="\nBefore exiting you can select configuration files to review/change.\n\nIf you need to make other changes with the drives still mounted, use Ctrl-z to pause the installer, when finished type 'fg' and [Enter] to resume the installer, if you want to avoid the automatic reboot using Ctrl-c will cleanly exit."
|
_edit="\nBefore exiting you can select configuration files to review/change.\n\nIf you need to make other changes with the drives still mounted, use Ctrl-z to pause the installer, when finished type 'fg' and [Enter] to resume the installer, if you want to avoid the automatic reboot using Ctrl-c will cleanly exit."
|
||||||
|
|
||||||
# LUKS
|
# LUKS
|
||||||
@ -181,17 +181,17 @@ main()
|
|||||||
tput civis
|
tput civis
|
||||||
dialog --backtitle "$DIST Installer - $SYS - v$VER" --title " Prepare " --default-item $SEL --cancel-label 'Exit' --menu "$_prep" 0 0 0 \
|
dialog --backtitle "$DIST Installer - $SYS - v$VER" --title " Prepare " --default-item $SEL --cancel-label 'Exit' --menu "$_prep" 0 0 0 \
|
||||||
1 "Show device tree" \
|
1 "Show device tree" \
|
||||||
2 "Partitioning helpers" \
|
2 "Partitioning" \
|
||||||
3 "LUKS encryption setup" \
|
3 "LUKS encryption" \
|
||||||
4 "Logical volume management setup" \
|
4 "Logical volume management" \
|
||||||
5 "* Mount system partitions" \
|
5 "* Mount partitions" \
|
||||||
6 "* Select system bootloader" \
|
6 "* Select bootloader" \
|
||||||
7 "* Create user and password" \
|
7 "* Username and password" \
|
||||||
8 "* Basic system configuration" \
|
8 "* System configuration" \
|
||||||
9 "Select window manager or desktop" \
|
9 "Select window manager or desktop" \
|
||||||
10 "Select additional packages" \
|
10 "Select additional packages" \
|
||||||
11 "View configuration selections" \
|
11 "View configuration selections" \
|
||||||
12 "Add a command to be run on the system during install" \
|
12 "Run a command on the installed system" \
|
||||||
13 "* Confirm choices and start the installation" 2> "$ANS"
|
13 "* Confirm choices and start the installation" 2> "$ANS"
|
||||||
|
|
||||||
read -r SEL < "$ANS"
|
read -r SEL < "$ANS"
|
||||||
@ -419,7 +419,7 @@ select_keymap()
|
|||||||
|
|
||||||
select_usercmd()
|
select_usercmd()
|
||||||
{
|
{
|
||||||
dlg MYHOST input "User Command" "$_usercmd" "$USER_CMD" nolimit
|
dlg USER_CMD input "User Command" "$_usercmd" "$USER_CMD" nolimit
|
||||||
}
|
}
|
||||||
|
|
||||||
select_sessions()
|
select_sessions()
|
||||||
|
Reference in New Issue
Block a user