Fixed some errors in shell scripts
[holmes/engine-management.git] / engine-d-standalone / src / main / assembly / bin / initDB.sh
index 3d2e8bc..cc27b09 100644 (file)
@@ -51,7 +51,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 alarm_info;'
 sql_result=$?
 
-if [ $need_unset -eq 1 ]; then
+if [ $need_unset = 1 ]; then
     unset PGPASSWORD
 fi