]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:14:44 +0000 (01:14 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:14:44 +0000 (01:14 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@278 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index f6a26396fd95410d866fa12d4eb05861d956a3a2..5b43dc404ba0106a9a4f0089b969a186cf4bcd17 100755 (executable)
@@ -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