From 0d29a7487b6e3b6e0d2431ca69248734a9d56e8a Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 13 Apr 2007 14:08:46 +0000 Subject: jail-commit: bugfix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@339 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/jail-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trunk/src') diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit index b801d12..f2695d7 100755 --- a/trunk/src/jail-commit +++ b/trunk/src/jail-commit @@ -54,12 +54,12 @@ function template_merge { if [[ -e "$file" && -e "$1/$file" ]]; then - if [ ! -d "$file" ] && [ ! -s "$file" ]; then + if [ ! -d "$file" ] && [ ! -h "$file" ]; then if ! diff $file $1/$file; then echo Updating $file cp -af $1/$file $file fi - elif [ -s "$file" ]; then + elif [ -h "$file" ]; then if [ "`readlink $file`" != "`readlink $1/$file`" ]; then rm -f $file ln -s `readlink $1/$file` $file -- cgit v1.2.3