From 796232edfb6d9ad3329a3fe9eb17ad5588600aa9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Apr 2007 01:14:44 +0000 Subject: templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@278 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index f6a2639..5b43dc4 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -590,7 +590,8 @@ function template_post_install_edit { else vi $TEMPLATE_BASE.s/$1 fi - if [ "$sha1sum" != "`sha1sum $TEMPLATE_BASE.s/$1`" ]; then + if [ "$sha1sum" != "`sha1sum $TEMPLATE_BASE.s/$1`" ] && \ + [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then echo "$BASENAME: please run 'jail-commit --all' to send changes to the repository" fi else @@ -628,7 +629,8 @@ function template_edit { else vi $TEMPLATE_BASE.template fi - if [ "$sha1sum" != "`sha1sum $TEMPLATE_BASE.template`" ]; then + if [ "$sha1sum" != "`sha1sum $TEMPLATE_BASE.template`" ] && \ + [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then echo "$BASENAME: please run 'jail-commit --all' to send changes to the repository" fi else -- cgit v1.2.3