Do not interpret backslashes when copying lines https://github.com/helixarch/debtap/issues/11

This commit is contained in:
Bojan Tomic 2015-11-15 19:22:55 +01:00
parent 914978fb09
commit 32778791d4

2
debtap
View File

@ -3515,7 +3515,7 @@ if [ -e preinst ] || [ -e postinst ] || [ -e prerm ] || [ -e postrm ]; then
IFS=$'\n'
if [ -e preinst ] && [ -e postinst ]; then
echo "pre_install() {" > tempfile
grep -iv '#!\|automatically\|added\|generated' preinst | while read line; do
grep -iv '#!\|automatically\|added\|generated' preinst | while read -r line; do
echo " $line" | sed s'/ / /g' >> tempfile
done
echo "}" >> tempfile