Fix postgres DB creation
authorAdam Chlipala <adamc@hcoop.net>
Wed, 9 Apr 2008 14:33:42 +0000 (14:33 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Wed, 9 Apr 2008 14:33:42 +0000 (14:33 +0000)
src/plugins/domtool-postgres

index 214e9ac..35fbc90 100755 (executable)
@@ -14,7 +14,7 @@ case $1 in
                ENCODING=$4
                DBNAME="${USERNAME}_${DBNAME_BASE}"
 
                ENCODING=$4
                DBNAME="${USERNAME}_${DBNAME_BASE}"
 
-               if [ -n $ENCODING ]; then
+               if [ -n "$ENCODING" ]; then
                    ENCODING="-E $ENCODING"
                fi
 
                    ENCODING="-E $ENCODING"
                fi