From f5e33fbc3b59b453f3c776fd921487b6d369a24f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 18 Feb 2019 13:06:08 +0100 Subject: [PATCH] Escaped newlines in Dependencies file --- BuildFiles/Packaging/scripts/repackage-build-package-distro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BuildFiles/Packaging/scripts/repackage-build-package-distro b/BuildFiles/Packaging/scripts/repackage-build-package-distro index f932061d..cedfe9db 100755 --- a/BuildFiles/Packaging/scripts/repackage-build-package-distro +++ b/BuildFiles/Packaging/scripts/repackage-build-package-distro @@ -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..."