From f4d48c7297f80e496d1b075775c3097f6075b131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= Date: Mon, 2 Dec 2019 22:43:00 +0000 Subject: [PATCH] Update make-nautilus avoid read/delete on the same file --- helpers/make-nautilus | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/helpers/make-nautilus b/helpers/make-nautilus index a02e253..0c02396 100644 --- a/helpers/make-nautilus +++ b/helpers/make-nautilus @@ -25,19 +25,16 @@ for patch in 16_unity_new_documents.patch; do sed "/$patch/d" -i debian/patches/series done -check_file() { -if [ ! -f $1 ]; then - echo " $1 doesn't exist removing from debian/docs" - sed -i "/^$1/d" debian/docs -fi -} - echo "Checking for necessary files to install by debian/docs." while read i do - check_file $i + if [ -f $i ]; then + echo $i >> debian/docs.new + fi done < debian/docs +mv debian/docs.new debian/docs +cat debian/docs changelog "Revert from using ubuntu-help to default gnome-help" compile