diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 01:14:44 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 01:14:44 +0000 |
commit | 796232edfb6d9ad3329a3fe9eb17ad5588600aa9 (patch) | |
tree | 31e550bbdc43b2a8739d90da4e8a0fb8f7154746 /trunk/src/templatepkg | |
parent | 8efcc5d9df361e0d5bfc503722665315bd7eb7c2 (diff) | |
download | simplepkg-796232edfb6d9ad3329a3fe9eb17ad5588600aa9.tar.gz simplepkg-796232edfb6d9ad3329a3fe9eb17ad5588600aa9.tar.bz2 |
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@278 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-x | trunk/src/templatepkg | 6 |
1 files 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 |