30 lines
829 B
Diff
30 lines
829 B
Diff
|
|
From f628deaa9ef3e1b9933b937b7a66caebc0142c8f Mon Sep 17 00:00:00 2001
|
||
|
|
From: Eric Gerbier <gerbier@users.sourceforge.net>
|
||
|
|
Date: Sun, 8 Sep 2024 17:22:05 +0200
|
||
|
|
Subject: [PATCH] fix trailing space (yixiangzhike)
|
||
|
|
|
||
|
|
---
|
||
|
|
rpmrebuild_files.sh | 6 +++++-
|
||
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
|
||
|
|
index 30955c0..8c2f29c 100755
|
||
|
|
--- a/rpmrebuild_files.sh
|
||
|
|
+++ b/rpmrebuild_files.sh
|
||
|
|
@@ -83,7 +83,11 @@ while :; do
|
||
|
|
read file_verify
|
||
|
|
read file_lang
|
||
|
|
read file_cap
|
||
|
|
- read file
|
||
|
|
+ # Trailer space may be part of filename.
|
||
|
|
+ OLD_IFS="$IFS"
|
||
|
|
+ IFS=""
|
||
|
|
+ read -r file
|
||
|
|
+ IFS="$OLD_IFS"
|
||
|
|
|
||
|
|
# on fedora 33, centos 7, 8, the root directory "/" is owned by filesystem package
|
||
|
|
# but for rpmrebuild, BUILDROOT is juste a symlink, not a directory (cf RpmBuild in rpmrebuild.sh)
|
||
|
|
--
|
||
|
|
2.46.0
|
||
|
|
|