Fixed a Shell Error 20/119120/1 1.3.0
authorGuangrongFu <fu.guangrong@zte.com.cn>
Thu, 11 Mar 2021 00:31:14 +0000 (08:31 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Thu, 11 Mar 2021 00:31:14 +0000 (08:31 +0800)
Change-Id: I2c9c66804ea6e1f3a8ba9ab14bead41e9f15fbd9
Issue-ID: HOLMES-419
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
engine-d-standalone/src/main/assembly/bin/initDB.sh

index cc27b09..2e5d605 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 = 1 ]; then
+if [ "$need_unset"x == "1"x ]; then
     unset PGPASSWORD
 fi