mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +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" $@
|
ini_section "$inifile" $@
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg_escape()
|
|
||||||
{
|
|
||||||
sed 's/\\/\\\\/g; s/\$/\\$/g; s/`/\\`/g'
|
|
||||||
}
|
|
||||||
|
|
||||||
scm_commit()
|
scm_commit()
|
||||||
{
|
{
|
||||||
case $SCM in
|
case $SCM in
|
||||||
|
|
@ -1108,7 +1103,7 @@ cmd_milk_install_log()
|
||||||
done
|
done
|
||||||
if [ "$content" ]; then
|
if [ "$content" ]; then
|
||||||
echo -e "$content" >&2
|
echo -e "$content" >&2
|
||||||
echo -e "\n$content" | cfg_escape >> $script
|
echo -e "\n$content" >> $script
|
||||||
fi
|
fi
|
||||||
cat $script | grep -v '^#!/bin\|^$' | grep -q . || rm $script
|
cat $script | grep -v '^#!/bin\|^$' | grep -q . || rm $script
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue