pkg.sh: Don't escape maintainer scripts

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-05 09:24:40 +00:00 committed by janware DevOps
commit adbeba2b9b

View file

@ -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