Fixed a Shell Error 19/119119/1 1.3.0
authorGuangrongFu <fu.guangrong@zte.com.cn>
Thu, 11 Mar 2021 00:30:26 +0000 (08:30 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Thu, 11 Mar 2021 00:30:26 +0000 (08:30 +0800)
Change-Id: I5d1fb5d370e0f760708f9048492567f0e9ed11f6
Issue-ID: HOLMES-419
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
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