commit:     bbcfddf456fdf1fca2b36cb0386df93cbc211305
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 21:43:53 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 21:44:20 2024 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=bbcfddf4

catalyst-auto: Replace more than one / with _ in logfile name

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 tools/catalyst-auto | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 04db65e7..d1a72d91 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -483,7 +483,7 @@ run_catalyst_commands() {
                        fi
 
                        for i in ${!specs_var}; do
-                               LOGFILE="${TMPDIR}/log/$(echo "${i}" | sed -e 
's:/:_:' -e 's:\.spec$::').log"
+                               LOGFILE="${TMPDIR}/log/$(echo "${i}" | sed -e 
's:/:_:g' -e 's:\.spec$::').log"
                                specpath=$(readlink -f "${i}")
                                run_cmd "${LOGFILE}" "${timeprefix[@]}" 
catalyst -a -c "${CATALYST_CONFIG}" -f "${specpath}"
                                if [[ $? != 0 ]]; then
@@ -496,7 +496,7 @@ run_catalyst_commands() {
                        done
 
                        for i in ${!optional_specs_var}; do
-                               LOGFILE="${TMPDIR}/log/$(echo "${i}" | sed -e 
's:/:_:' -e 's:\.spec$::').log"
+                               LOGFILE="${TMPDIR}/log/$(echo "${i}" | sed -e 
's:/:_:g' -e 's:\.spec$::').log"
                                specpath=$(readlink -f "${i}")
                                run_cmd "${LOGFILE}" "${timeprefix[@]}" 
catalyst -a -c "${CATALYST_CONFIG}" -f "${specpath}"
                                if [[ $? != 0 ]]; then

Reply via email to