Fix postgres DB creation
[hcoop/domtool2.git] / 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