[openstreetmap-carto] 01/01: Use POSIX compatible if expression

Ruben Undheim rubund-guest at moszumanska.debian.org
Sun Oct 11 19:39:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository openstreetmap-carto.

commit a4ea7e2baeb9b3d503540fc3f2e1997dfee76add
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Sun Oct 11 21:39:07 2015 +0200

    Use POSIX compatible if expression
---
 debian/openstreetmap-carto.preinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/openstreetmap-carto.preinst b/debian/openstreetmap-carto.preinst
index 0753ded..85fd5b3 100644
--- a/debian/openstreetmap-carto.preinst
+++ b/debian/openstreetmap-carto.preinst
@@ -16,7 +16,7 @@ set -e
 
 case "$1" in
     install|upgrade)
-        if [ -d /usr/share/openstreetmap-carto/data -a ! -L /usr/share/openstreetmap-carto/data ] ; then
+        if [ -d /usr/share/openstreetmap-carto/data ] && [ ! -L /usr/share/openstreetmap-carto/data ] ; then
             mv /usr/share/openstreetmap-carto/data /usr/share/openstreetmap-carto/data.old
         fi
     ;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/openstreetmap-carto.git



More information about the Pkg-grass-devel mailing list