From: Prarit Bhargava <prarit@xxxxxxxxxx> redhat/configs: Fix rm warning on error When an unset config is found, process_configs.sh cleans up and returns an error. In this case the .newconfigs file is not created and errors like rm: cannot remove '.newoptions18': No such file or directory rm: cannot remove '.newoptions16': No such file or directory rm: cannot remove '.newoptions17': No such file or directory are output to the user. Since we output the "real" error at the end of the output, these errors can be safely ignored. Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx> diff --git a/redhat/configs/process_configs.sh b/redhat/configs/process_configs.sh index blahblah..blahblah 100755 --- a/redhat/configs/process_configs.sh +++ b/redhat/configs/process_configs.sh @@ -262,7 +262,7 @@ function process_config() rm .newoptions"${count}" RETURNCODE=1 fi - rm .newoptions"${count}" + rm -f .newoptions"${count}" grep -E 'config.*warning' .listnewconfig"${count}" > .warnings"${count}" if test -n "$CHECKWARNINGS" && test -s .warnings"${count}" -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1778 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure