From: Prarit Bhargava <prarit(a)redhat.com>
The process_configs.sh created temporary *.config.orig files for each
config variant which were not being properly cleaned up.
Remove *.config.orig files.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
Cc: dzickus(a)redhat.com
Cc: jforbes(a)redhat.com
Cc: mleitner(a)redhat.com
Cc: jbenc(a)redhat.com
---
redhat/configs/process_configs.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/redhat/configs/process_configs.sh b/redhat/configs/process_configs.sh
index 6e36965843a5..92cc79701c4e 100755
--- a/redhat/configs/process_configs.sh
+++ b/redhat/configs/process_configs.sh
@@ -187,6 +187,7 @@ function commit_new_configs()
if [ "$arch" = "EMPTY" ]
then
# This arch is intentionally left blank
+ rm -f "${cfg}.orig"
continue
fi
echo -n "Checking for new configs in $cfg ... "
@@ -221,6 +222,7 @@ function process_configs()
if [ "$arch" = "EMPTY" ]
then
# This arch is intentionally left blank
+ rm -f "${cfg}.orig"
continue
fi
echo -n "Processing $cfg ... "
@@ -264,7 +266,7 @@ function process_configs()
else
mv ${cfgtmp} ${cfg}
fi
- rm ${cfgorig}
+ rm -f ${cfgorig}
echo "done"
done
rm "$SCRIPT_DIR"/*.config*.old
--
GitLab