From 0b5e2f4b5b5e4c441a52c6fc0c67deead7944f3f Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 8 Jul 2024 19:40:11 +0200 Subject: [PATCH] style: Filter error output in --edit-config --- src/script/arch-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 4ff2757..c208b00 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -843,7 +843,7 @@ case "${option}" in error_msg "$(eval_gettext "No configuration file found\nYou can generate one with \"arch-update --gen-config\"")" exit 13 else - if ! "${EDITOR:-nano}" "${config_file}"; then + if ! "${EDITOR:-nano}" "${config_file}" 2> /dev/null; then error_msg "$(eval_gettext "Unable to determine the editor to use\nThe \$EDITOR environment variable is not set and \"nano\" (fallback option) is not installed")" exit 13 fi