mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
pkg.sh: Don't escape maintainer scripts
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
05df80978d
commit
adbeba2b9b
1 changed files with 1 additions and 6 deletions
|
|
@ -50,11 +50,6 @@ cfg_section()
|
|||
ini_section "$inifile" $@
|
||||
}
|
||||
|
||||
cfg_escape()
|
||||
{
|
||||
sed 's/\\/\\\\/g; s/\$/\\$/g; s/`/\\`/g'
|
||||
}
|
||||
|
||||
scm_commit()
|
||||
{
|
||||
case $SCM in
|
||||
|
|
@ -1108,7 +1103,7 @@ cmd_milk_install_log()
|
|||
done
|
||||
if [ "$content" ]; then
|
||||
echo -e "$content" >&2
|
||||
echo -e "\n$content" | cfg_escape >> $script
|
||||
echo -e "\n$content" >> $script
|
||||
fi
|
||||
cat $script | grep -v '^#!/bin\|^$' | grep -q . || rm $script
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue