28 lines
726 B
Diff
28 lines
726 B
Diff
From 44f346694bbcce7769f014c91d4330b7103e7cb1 Mon Sep 17 00:00:00 2001
|
|
From: Eric Gerbier <gerbier@users.sourceforge.net>
|
|
Date: Mon, 9 Sep 2024 08:01:32 +0200
|
|
Subject: [PATCH] fix backslash in filename
|
|
|
|
---
|
|
rpmrebuild_files.sh | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/rpmrebuild_files.sh b/rpmrebuild_files.sh
|
|
index 89f145a..a56b110 100755
|
|
--- a/rpmrebuild_files.sh
|
|
+++ b/rpmrebuild_files.sh
|
|
@@ -96,7 +96,10 @@ while :; do
|
|
#[ -n "$wild" ] && file=$(echo "$file"|sed 's/\*/\\*/')
|
|
# quick and portable
|
|
case "x$file" in
|
|
+ # replace * by \*
|
|
x*\**) file=$(echo "$file" | sed 's/\*/\\*/');;
|
|
+ # replace \ by \\
|
|
+ x*\\*) file=$(echo "$file" | sed 's/\\/\\\\/');;
|
|
x*) ;;
|
|
esac
|
|
miss_str=""
|
|
--
|
|
2.46.0
|
|
|