aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/templatepkg6
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