Skip to content

Commit

Permalink
style: Filter error output in --edit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Jul 8, 2024
1 parent 42ef06c commit 0b5e2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b5e2f4

Please sign in to comment.