From 32778791d4d7de90ef4e6d8fcf83d47553551320 Mon Sep 17 00:00:00 2001 From: Bojan Tomic Date: Sun, 15 Nov 2015 19:22:55 +0100 Subject: [PATCH] Do not interpret backslashes when copying lines https://github.com/helixarch/debtap/issues/11 --- debtap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debtap b/debtap index 962e566..9f83622 100755 --- a/debtap +++ b/debtap @@ -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