Skip to content

Commit

Permalink
Merge pull request #1318 from AuxXxilium/dev
Browse files Browse the repository at this point in the history
arc-functions: rewrite OK to save for editboxes
  • Loading branch information
AuxXxilium authored May 1, 2024
2 parents f73855f + e79c40d commit c31eafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/initrd/opt/arc/arc-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function editUserConfig() {
while true; do
dialog --backtitle "$(backtitle)" --title "Edit with caution" \
--editbox "${USER_CONFIG_FILE}" 0 0 2>"${TMP_PATH}/userconfig"
--ok-label "Save" --editbox "${USER_CONFIG_FILE}" 0 0 2>"${TMP_PATH}/userconfig"
[ $? -ne 0 ] && return 1
mv -f "${TMP_PATH}/userconfig" "${USER_CONFIG_FILE}"
ERRORS=$(yq eval "${USER_CONFIG_FILE}" 2>&1)
Expand Down Expand Up @@ -1978,8 +1978,8 @@ function resetLoader() {
# let user edit the grub.cfg
function editGrubCfg() {
while true; do
dialog --backtitle "$(backtitle)" --colors --title "Edit grub.cfg with caution" \
--editbox "${GRUB_PATH}/grub.cfg" 0 0 2>"${TMP_PATH}/usergrub.cfg"
dialog --backtitle "$(backtitle)" --title "Edit with caution" \
--ok-label "Save" --editbox "${GRUB_PATH}/grub.cfg" 0 0 2>"${TMP_PATH}/usergrub.cfg"
[ $? -ne 0 ] && return
mv -f "${TMP_PATH}/usergrub.cfg" "${GRUB_PATH}/grub.cfg"
break
Expand Down

0 comments on commit c31eafd

Please sign in to comment.