Fixed a Shell Error
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / bin / initDB.sh
index 89f9264..88c2022 100644 (file)
@@ -49,7 +49,7 @@ psql -U "$user" -p "$port" -h "$host" -d "$dbname" -f $main_path/dbscripts/postg
 psql -U "$user" -p "$port" -h "$host" -d "$dbname" --command 'select * from aplus_rule;'
 sql_result=$?
 
-if [ $need_unset = 1 ]; then
+if [ "$need_unset"x == "1"x ]; then
     unset PGPASSWORD
 fi