fix remote-login.sh, fix abort function

This commit is contained in:
Tobias Powalowski 2024-04-15 21:09:17 +02:00
parent d4e0f187a2
commit be7d47b343
3 changed files with 2 additions and 3 deletions

View file

@ -123,7 +123,7 @@ _show_login() {
} }
_abort() { _abort() {
if _dialog --yesno "Abort$(echo "${_TITLE}" | cut -d '|' -f3) ?" 5 45; then if _dialog --yesno "Abort$(echo "${_TITLE}" | cut -d '|' -f5) ?" 5 45; then
[[ -e "${_ANSWER}-running" ]] && rm "${_ANSWER}-running" [[ -e "${_ANSWER}-running" ]] && rm "${_ANSWER}-running"
[[ -e "${_ANSWER}" ]] && rm "${_ANSWER}" [[ -e "${_ANSWER}" ]] && rm "${_ANSWER}"
clear clear

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-3.0-or-later
# Created by Tobias Powalowski <tpowa@archlinux.org> # Created by Tobias Powalowski <tpowa@archlinux.org>
# simulate login from tty on first screen session # simulate login from tty on first screen session
@ -8,5 +8,4 @@ if ! screen -ls &>/dev/null; then
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login." echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
read -r read -r
fi fi
. /etc/profile
screen -q -xRR screen -q -xRR