[debian-edu-commits] debian-edu/ 01/01: debian/educlient.prerm: Only move a given file to <filename>.educlient-removed, if such a file exist.

Mike Gabriel sunweaver at debian.org
Fri Nov 13 15:19:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository educlient.

commit 88ff3a50614c1fcc697c13aeceb5f03d7991f973
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Nov 13 16:19:35 2015 +0100

    debian/educlient.prerm: Only move a given file to <filename>.educlient-removed, if such a file exist.
---
 debian/educlient.prerm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/educlient.prerm b/debian/educlient.prerm
index ee88a0b..8194272 100755
--- a/debian/educlient.prerm
+++ b/debian/educlient.prerm
@@ -31,7 +31,9 @@ cat /etc/debian-edu/educlient.files-* | while read file;
 			fi
 			dpkg-divert --package educlient --rename --remove $file
 		else
-			mv  $file $file.educlient-removed
+			if [ -f "$file" ]; then
+				mv $file $file.educlient-removed
+			fi
 		fi
 	done
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/educlient.git



More information about the debian-edu-commits mailing list