mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
Fix quoting in text2c.sh
it failed when the build dir contained spaces
This commit is contained in:
parent
6480df48f3
commit
7c87003bde
@ -35,6 +35,6 @@
|
||||
outupper="`basename "$2" | tr '[a-z-.]' '[A-Z__]'`"
|
||||
|
||||
(
|
||||
printf "const char %s[] = \n" $3
|
||||
sed -e 's/["\]/\\&/g' -e 's/^/\t"/' -e 's/$/\\n"/' -e '$s/$/;/' $1
|
||||
) > $2
|
||||
printf "const char %s[] = \n" "$3"
|
||||
sed -e 's/["\]/\\&/g' -e 's/^/\t"/' -e 's/$/\\n"/' -e '$s/$/;/' "$1"
|
||||
) > "$2"
|
||||
|
Loading…
Reference in New Issue
Block a user