Update make-nautilus avoid read/delete on the same file

This commit is contained in:
Luis Guzmán 2019-12-02 22:43:00 +00:00
parent 3f95738a27
commit f4d48c7297

View file

@ -25,19 +25,16 @@ for patch in 16_unity_new_documents.patch; do
sed "/$patch/d" -i debian/patches/series sed "/$patch/d" -i debian/patches/series
done 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." echo "Checking for necessary files to install by debian/docs."
while read i while read i
do do
check_file $i if [ -f $i ]; then
echo $i >> debian/docs.new
fi
done < debian/docs done < debian/docs
mv debian/docs.new debian/docs
cat debian/docs
changelog "Revert from using ubuntu-help to default gnome-help" changelog "Revert from using ubuntu-help to default gnome-help"
compile compile