diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2018-10-05 22:52:12 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-06 20:57:47 +0200 |
commit | 43bd490bdfd100d502f678d94f16da1ca327c4b8 (patch) | |
tree | c04881fbf649de300ff7a240e8b7a6410c8f8866 | |
parent | 841aa7b282b491f438e6bb1d314972199c5cf096 (diff) | |
download | ptxdist-43bd490bdfd100d502f678d94f16da1ca327c4b8.tar.gz ptxdist-43bd490bdfd100d502f678d94f16da1ca327c4b8.tar.xz |
ptxd_install_replace_figlet: replace all backslashes, not only the first
Fixes: f53889792197 ("ptxd_install_replace_figlet: Use sed instead of awk to quote backslashes")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index b3f2f20f3..766d46ac3 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -587,7 +587,7 @@ install replace figlet: # figlet needs to be replaced by \\\\. As a \ in sed needs to be # quoted, too, this results in eight backslashes in the replacement # string. - etcissue) sed 's,\\,\\\\\\\\,';; + etcissue) sed 's,\\,\\\\\\\\,g';; *) ;; esac | \ awk '{ if ($0 !~ "^ *$") printf("%s\\n", $0) }' # newlines for sed |