Escaped newlines in Dependencies file

This commit is contained in:
Rick Falkvinge
2019-02-18 13:06:08 +01:00
parent f7cb81a1b4
commit f5e33fbc3b
@@ -42,11 +42,13 @@ do
fi
echo "Dependencies: $DEPENDENCIES"
# escape newlines in Dependencies file
DEPENDENCIES=$(echo ${DEPENDENCIES} | tr '\n' "\\n")
# read -p "Press [Enter] key to make control backup..."
cp $DROPFOLDER/payload/DEBIAN/control $DROPFOLDER/controlbackup
sed -i "s/--Dependencies--/$DEPENDENCIES/g" $DROPFOLDER/payload/DEBIAN/control
sed -i "s/--Dependencies--/${DEPENDENCIES}/g" $DROPFOLDER/payload/DEBIAN/control
# read -p "Press [Enter] key to make create checksums..."