diff options
author | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-12-24 20:25:28 +0100 |
---|---|---|
committer | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-12-24 20:25:28 +0100 |
commit | caf5711bcc936805db5784cf0f9ed85b43774e1d (patch) | |
tree | 08fdd77676bb2e1599cc8db8cb49fce067d75a7c | |
parent | 03ac3c9faabb9e19783b9e47c827fb3bdc32eea0 (diff) | |
download | midipix_build-caf5711bcc936805db5784cf0f9ed85b43774e1d.tar.bz2 midipix_build-caf5711bcc936805db5784cf0f9ed85b43774e1d.tar.xz |
subr.ex/ex_rtl_rpm.subr:ex_rtl_build_rpm(): quote filenames in spec files.
-rw-r--r-- | subr.ex/ex_rtl_rpm.subr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subr.ex/ex_rtl_rpm.subr b/subr.ex/ex_rtl_rpm.subr index 871abf6a..7c89acb3 100644 --- a/subr.ex/ex_rtl_rpm.subr +++ b/subr.ex/ex_rtl_rpm.subr @@ -101,7 +101,9 @@ ex_rtl_build_rpm() { > "${_erbr_spec_fname_tgt}" \ && (cd "${_erbr_destdir}"; \ find -mindepth 1 \( -type f -or -type l \) | \ - sed -e 's,^./,'"/"',') \ + sed -e 's,^./,'"/"',' \ + -e 's/^/"/' \ + -e 's/$/"/') \ >> "${_erbr_spec_fname_tgt}" \ && sed -n -e '/^%files$/,${/^%files$/d;p}' \ "${_erbr_spec_fname_tgt_tmp}" \ |