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